mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
Merge pull request #6943 from ryanpetrello/devel
merge in a few downstream fixes Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -104,7 +104,7 @@ class BroadcastConsumer(AsyncJsonWebsocketConsumer):
|
|||||||
logger.info(f"client '{self.channel_name}' joined the broadcast group.")
|
logger.info(f"client '{self.channel_name}' joined the broadcast group.")
|
||||||
|
|
||||||
async def disconnect(self, code):
|
async def disconnect(self, code):
|
||||||
logger.info("client '{self.channel_name}' disconnected from the broadcast group.")
|
logger.info(f"client '{self.channel_name}' disconnected from the broadcast group.")
|
||||||
await self.channel_layer.group_discard(settings.BROADCAST_WEBSOCKET_GROUP_NAME, self.channel_name)
|
await self.channel_layer.group_discard(settings.BROADCAST_WEBSOCKET_GROUP_NAME, self.channel_name)
|
||||||
|
|
||||||
async def internal_message(self, event):
|
async def internal_message(self, event):
|
||||||
|
|||||||
24
awx/main/migrations/0115_v370_schedule_set_null.py
Normal file
24
awx/main/migrations/0115_v370_schedule_set_null.py
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Generated by Django 2.2.11 on 2020-05-04 02:26
|
||||||
|
|
||||||
|
import awx.main.utils.polymorphic
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('main', '0114_v370_remove_deprecated_manual_inventory_sources'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='unifiedjob',
|
||||||
|
name='schedule',
|
||||||
|
field=models.ForeignKey(default=None, editable=False, null=True, on_delete=awx.main.utils.polymorphic.SET_NULL, to='main.Schedule'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='unifiedjobtemplate',
|
||||||
|
name='next_schedule',
|
||||||
|
field=models.ForeignKey(default=None, editable=False, null=True, on_delete=awx.main.utils.polymorphic.SET_NULL, related_name='unifiedjobtemplate_as_next_schedule+', to='main.Schedule'),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -2491,8 +2491,9 @@ class rhv(PluginFileInjector):
|
|||||||
"""
|
"""
|
||||||
plugin_name = 'ovirt'
|
plugin_name = 'ovirt'
|
||||||
base_injector = 'template'
|
base_injector = 'template'
|
||||||
|
initial_version = '2.9'
|
||||||
namespace = 'ovirt'
|
namespace = 'ovirt'
|
||||||
collection = 'ovirt_collection'
|
collection = 'ovirt'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def script_name(self):
|
def script_name(self):
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ class UnifiedJobTemplate(PolymorphicModel, CommonModelNameNotUnique, Notificatio
|
|||||||
default=None,
|
default=None,
|
||||||
editable=False,
|
editable=False,
|
||||||
related_name='%(class)s_as_next_schedule+',
|
related_name='%(class)s_as_next_schedule+',
|
||||||
on_delete=models.SET_NULL,
|
on_delete=polymorphic.SET_NULL,
|
||||||
)
|
)
|
||||||
status = models.CharField(
|
status = models.CharField(
|
||||||
max_length=32,
|
max_length=32,
|
||||||
@@ -586,7 +586,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
|||||||
null=True,
|
null=True,
|
||||||
default=None,
|
default=None,
|
||||||
editable=False,
|
editable=False,
|
||||||
on_delete=models.SET_NULL,
|
on_delete=polymorphic.SET_NULL,
|
||||||
)
|
)
|
||||||
dependent_jobs = models.ManyToManyField(
|
dependent_jobs = models.ManyToManyField(
|
||||||
'self',
|
'self',
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
plugin: ovirt.ovirt_collection.ovirt
|
plugin: ovirt.ovirt.ovirt
|
||||||
|
|||||||
@@ -148,6 +148,9 @@ for setting in dir(this_module):
|
|||||||
include(optional('/etc/tower/settings.py'), scope=locals())
|
include(optional('/etc/tower/settings.py'), scope=locals())
|
||||||
include(optional('/etc/tower/conf.d/*.py'), scope=locals())
|
include(optional('/etc/tower/conf.d/*.py'), scope=locals())
|
||||||
|
|
||||||
|
# Installed differently in Dockerfile compared to production versions
|
||||||
|
INVENTORY_COLLECTIONS_ROOT = '/vendor/inventory_collections'
|
||||||
|
|
||||||
BASE_VENV_PATH = "/venv/"
|
BASE_VENV_PATH = "/venv/"
|
||||||
ANSIBLE_VENV_PATH = os.path.join(BASE_VENV_PATH, "ansible")
|
ANSIBLE_VENV_PATH = os.path.join(BASE_VENV_PATH, "ansible")
|
||||||
AWX_VENV_PATH = os.path.join(BASE_VENV_PATH, "awx")
|
AWX_VENV_PATH = os.path.join(BASE_VENV_PATH, "awx")
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ if "pytest" in sys.modules:
|
|||||||
PROJECTS_ROOT = '/var/lib/awx/projects/'
|
PROJECTS_ROOT = '/var/lib/awx/projects/'
|
||||||
|
|
||||||
# Location for cross-development of inventory plugins
|
# Location for cross-development of inventory plugins
|
||||||
# INVENTORY_COLLECTIONS_ROOT = '/awx_devel/awx/plugins/collections'
|
INVENTORY_COLLECTIONS_ROOT = '/vendor/inventory_collections'
|
||||||
|
|
||||||
# Absolute filesystem path to the directory for job status stdout
|
# Absolute filesystem path to the directory for job status stdout
|
||||||
# This directory should not be web-accessible
|
# This directory should not be web-accessible
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
---
|
---
|
||||||
collections:
|
collections:
|
||||||
- name: awx.awx
|
- name: awx.awx
|
||||||
version: 9.3.0
|
version: 11.2.0 # almost all versions should work
|
||||||
- name: azure.azcollection
|
- name: azure.azcollection
|
||||||
version: 0.1.2
|
version: 0.1.2
|
||||||
- name: amazon.aws
|
- name: amazon.aws
|
||||||
version: 0.1.1 # version 0.1.0 seems to have gone missing
|
version: 0.1.1 # version 0.1.0 seems to have gone missing
|
||||||
- name: theforeman.foreman
|
- name: theforeman.foreman
|
||||||
version: 0.7.0 # contains the inventory plugin, but more patches are needed
|
version: 0.8.0
|
||||||
- name: google.cloud
|
- name: google.cloud
|
||||||
version: 0.0.9 # contains PR 167, should be good to go
|
version: 0.0.9 # contains PR 167, should be good to go
|
||||||
- name: openstack.cloud
|
- name: openstack.cloud
|
||||||
version: 0.0.1-dev85 # earlier had checksum mismatch
|
version: 0.0.1-dev85 # earlier had checksum mismatch
|
||||||
- name: community.vmware
|
- name: community.vmware
|
||||||
version: 0.4.0 # first to contain necessary grouping and filtering features
|
version: 0.4.0 # first to contain necessary grouping and filtering features
|
||||||
- name: ovirt.ovirt_collection
|
- name: ovirt.ovirt
|
||||||
version: 1.0.1 # new fix published, should be good to go
|
version: 1.0.0 # contains naming fix, was originally named ovirt.ovirt_collection
|
||||||
|
|||||||
@@ -50,10 +50,10 @@ else
|
|||||||
echo "VMWare collection already exists"
|
echo "VMWare collection already exists"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "$base_dir/ovirt/ovirt_collection" ]
|
if [ ! -d "$base_dir/ovirt/ovirt" ]
|
||||||
then
|
then
|
||||||
mkdir -p $base_dir/ovirt
|
mkdir -p $base_dir/ovirt
|
||||||
git clone $base_dir/ovirt/ovirt_collection
|
git clone https://github.com/oVirt/ovirt-ansible-collection.git $base_dir/ovirt/ovirt
|
||||||
else
|
else
|
||||||
echo "Ovirt collection already exists"
|
echo "Ovirt collection already exists"
|
||||||
fi
|
fi
|
||||||
@@ -62,7 +62,6 @@ if [ ! -d "$base_dir/awx/awx" ]
|
|||||||
then
|
then
|
||||||
mkdir -p $base_dir/awx
|
mkdir -p $base_dir/awx
|
||||||
ln -s $(shell pwd)/awx_collection $base_dir/awx/awx
|
ln -s $(shell pwd)/awx_collection $base_dir/awx/awx
|
||||||
git clone $base_dir/awx/awx
|
|
||||||
else
|
else
|
||||||
echo "awx collection already exists"
|
echo "awx collection already exists"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -128,8 +128,8 @@ ADD tools/docker-compose/entrypoint.sh /
|
|||||||
ADD tools/docker-compose/rsyslog.conf /var/lib/awx/rsyslog/rsyslog.conf
|
ADD tools/docker-compose/rsyslog.conf /var/lib/awx/rsyslog/rsyslog.conf
|
||||||
ADD tools/scripts/awx-python /usr/bin/awx-python
|
ADD tools/scripts/awx-python /usr/bin/awx-python
|
||||||
|
|
||||||
# Pre-create things that we need to write to
|
# Pre-create things that we need to write to / fix up permissions
|
||||||
RUN for dir in /var/lib/awx /var/lib/awx/rsyslog /var/lib/awx/rsyslog/conf.d /var/run/awx-rsyslog /var/log/tower/ /var/lib/awx/projects /.ansible /var/log/nginx /var/lib/nginx /.local; \
|
RUN for dir in /var/lib/awx /var/lib/awx/rsyslog /var/lib/awx/rsyslog/conf.d /var/run/awx-rsyslog /var/log/tower/ /var/lib/awx/projects /.ansible /var/log/nginx /var/lib/nginx /.local /vendor; \
|
||||||
do mkdir -p $dir; chmod -R g+rwx $dir; chgrp -R root $dir; done && \
|
do mkdir -p $dir; chmod -R g+rwx $dir; chgrp -R root $dir; done && \
|
||||||
\
|
\
|
||||||
for file in /etc/passwd /etc/supervisord.conf /venv/awx/lib/python3.6/site-packages/awx.egg-link /var/run/nginx.pid; \
|
for file in /etc/passwd /etc/supervisord.conf /venv/awx/lib/python3.6/site-packages/awx.egg-link /var/run/nginx.pid; \
|
||||||
|
|||||||
Reference in New Issue
Block a user