Refactor setup_docker_host.sh as host_prep_tasks
Previously what we've been doing with setup_docker_host.sh can now be achieved with host_prep_tasks, and we can free up the NodeUserData interface for other use cases. Closes-Bug: #1711387 Change-Id: Iaac90efd03e37ceb02c312f9c15c1da7d4982510
This commit is contained in:
parent
43027fefc0
commit
f7a84702de
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -eux
|
|
||||||
# This file contains setup steps that can't be or have not yet been moved to
|
|
||||||
# puppet
|
|
||||||
|
|
||||||
# Disable libvirtd since it conflicts with nova_libvirt container
|
|
||||||
/usr/bin/systemctl disable libvirtd.service
|
|
||||||
/usr/bin/systemctl stop libvirtd.service
|
|
||||||
# Disable virtlogd since it conflicts with nova_virtlogd container
|
|
||||||
/usr/bin/systemctl disable virtlogd.service
|
|
||||||
/usr/bin/systemctl stop virtlogd.service
|
|
@ -1,19 +0,0 @@
|
|||||||
heat_template_version: pike
|
|
||||||
|
|
||||||
resources:
|
|
||||||
|
|
||||||
userdata:
|
|
||||||
type: OS::Heat::MultipartMime
|
|
||||||
properties:
|
|
||||||
parts:
|
|
||||||
- config: {get_resource: setup_docker_host}
|
|
||||||
|
|
||||||
setup_docker_host:
|
|
||||||
type: OS::Heat::SoftwareConfig
|
|
||||||
properties:
|
|
||||||
group: script
|
|
||||||
config: {get_file: ./setup_docker_host.sh}
|
|
||||||
|
|
||||||
outputs:
|
|
||||||
OS::stack_id:
|
|
||||||
value: {get_resource: userdata}
|
|
@ -243,6 +243,19 @@ outputs:
|
|||||||
file:
|
file:
|
||||||
path: /etc/ceph
|
path: /etc/ceph
|
||||||
state: directory
|
state: directory
|
||||||
|
- name: check if libvirt is installed
|
||||||
|
command: /usr/bin/rpm -q libvirt-daemon
|
||||||
|
failed_when: false
|
||||||
|
register: libvirt_installed
|
||||||
|
- name: make sure libvirt services are disabled
|
||||||
|
service:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: stopped
|
||||||
|
enabled: no
|
||||||
|
with_items:
|
||||||
|
- libvirtd.service
|
||||||
|
- virtlogd.socket
|
||||||
|
when: libvirt_installed.rc == 0
|
||||||
upgrade_tasks:
|
upgrade_tasks:
|
||||||
- name: Stop and disable libvirtd service
|
- name: Stop and disable libvirtd service
|
||||||
tags: step2
|
tags: step2
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
# This environment contains the services that can work with TLS-everywhere.
|
# This environment contains the services that can work with TLS-everywhere.
|
||||||
resource_registry:
|
resource_registry:
|
||||||
# This can be used when you don't want to run puppet on the host,
|
|
||||||
# e.g atomic, but it has been replaced with OS::TripleO::Services::Docker
|
|
||||||
# OS::TripleO::NodeUserData: ../docker/firstboot/setup_docker_host.yaml
|
|
||||||
OS::TripleO::Services::Docker: ../puppet/services/docker.yaml
|
OS::TripleO::Services::Docker: ../puppet/services/docker.yaml
|
||||||
# The compute node still needs extra initialization steps
|
|
||||||
OS::TripleO::Compute::NodeUserData: ../docker/firstboot/setup_docker_host.yaml
|
|
||||||
# Default Neutron ML2 puppet plugin to use when NeutronCorePlugin is set to ML2
|
# Default Neutron ML2 puppet plugin to use when NeutronCorePlugin is set to ML2
|
||||||
OS::TripleO::Docker::NeutronMl2PluginBase: ../puppet/services/neutron-plugin-ml2.yaml
|
OS::TripleO::Docker::NeutronMl2PluginBase: ../puppet/services/neutron-plugin-ml2.yaml
|
||||||
|
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
resource_registry:
|
resource_registry:
|
||||||
# This can be used when you don't want to run puppet on the host,
|
|
||||||
# e.g atomic, but it has been replaced with OS::TripleO::Services::Docker
|
|
||||||
# OS::TripleO::NodeUserData: ../docker/firstboot/setup_docker_host.yaml
|
|
||||||
# The compute node still needs extra initialization steps
|
|
||||||
OS::TripleO::Compute::NodeUserData: ../docker/firstboot/setup_docker_host.yaml
|
|
||||||
|
|
||||||
OS::TripleO::Services::Docker: ../puppet/services/docker.yaml
|
OS::TripleO::Services::Docker: ../puppet/services/docker.yaml
|
||||||
# Default Neutron ML2 puppet plugin to use when NeutronCorePlugin is set to ML2
|
# Default Neutron ML2 puppet plugin to use when NeutronCorePlugin is set to ML2
|
||||||
OS::TripleO::Docker::NeutronMl2PluginBase: ../puppet/services/neutron-plugin-ml2.yaml
|
OS::TripleO::Docker::NeutronMl2PluginBase: ../puppet/services/neutron-plugin-ml2.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user