aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/nova/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/nova/templates')
-rw-r--r--ansible/roles/nova/templates/id_rsa1
-rw-r--r--ansible/roles/nova/templates/id_rsa.pub1
-rw-r--r--ansible/roles/nova/templates/libvirtd.conf.j26
-rw-r--r--ansible/roles/nova/templates/nova-api.json.j218
-rw-r--r--ansible/roles/nova/templates/nova-compute-ironic.json.j218
-rw-r--r--ansible/roles/nova/templates/nova-compute.json.j229
-rw-r--r--ansible/roles/nova/templates/nova-conductor.json.j218
-rw-r--r--ansible/roles/nova/templates/nova-consoleauth.json.j218
-rw-r--r--ansible/roles/nova/templates/nova-libvirt.json.j229
-rw-r--r--ansible/roles/nova/templates/nova-network.json.j211
-rw-r--r--ansible/roles/nova/templates/nova-novncproxy.json.j218
-rw-r--r--ansible/roles/nova/templates/nova-scheduler.json.j218
-rw-r--r--ansible/roles/nova/templates/nova-spicehtml5proxy.json.j218
-rw-r--r--ansible/roles/nova/templates/nova-ssh.json.j229
-rw-r--r--ansible/roles/nova/templates/nova.conf.j2209
-rw-r--r--ansible/roles/nova/templates/qemu.conf.j21
-rw-r--r--ansible/roles/nova/templates/secret.xml.j26
-rw-r--r--ansible/roles/nova/templates/ssh_config.j24
-rw-r--r--ansible/roles/nova/templates/sshd_config.j25
19 files changed, 0 insertions, 457 deletions
diff --git a/ansible/roles/nova/templates/id_rsa b/ansible/roles/nova/templates/id_rsa
deleted file mode 100644
index 173a4b3e1..000000000
--- a/ansible/roles/nova/templates/id_rsa
+++ /dev/null
@@ -1 +0,0 @@
-{{ nova_ssh_key.private_key }}
diff --git a/ansible/roles/nova/templates/id_rsa.pub b/ansible/roles/nova/templates/id_rsa.pub
deleted file mode 100644
index 16bd674f2..000000000
--- a/ansible/roles/nova/templates/id_rsa.pub
+++ /dev/null
@@ -1 +0,0 @@
-{{ nova_ssh_key.public_key }}
diff --git a/ansible/roles/nova/templates/libvirtd.conf.j2 b/ansible/roles/nova/templates/libvirtd.conf.j2
deleted file mode 100644
index 70e958929..000000000
--- a/ansible/roles/nova/templates/libvirtd.conf.j2
+++ /dev/null
@@ -1,6 +0,0 @@
-listen_tcp = 1
-auth_tcp = "none"
-ca_file = ""
-log_level = 3
-log_outputs = "3:file:/var/log/kolla/libvirt/libvirtd.log"
-listen_addr = "{{ api_interface_address }}"
diff --git a/ansible/roles/nova/templates/nova-api.json.j2 b/ansible/roles/nova/templates/nova-api.json.j2
deleted file mode 100644
index 28642bd59..000000000
--- a/ansible/roles/nova/templates/nova-api.json.j2
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "command": "nova-api",
- "config_files": [
- {
- "source": "{{ container_config_directory }}/nova.conf",
- "dest": "/etc/nova/nova.conf",
- "owner": "nova",
- "perm": "0600"
- }
- ],
- "permissions": [
- {
- "path": "/var/log/kolla/nova",
- "owner": "nova:nova",
- "recurse": true
- }
- ]
-}
diff --git a/ansible/roles/nova/templates/nova-compute-ironic.json.j2 b/ansible/roles/nova/templates/nova-compute-ironic.json.j2
deleted file mode 100644
index 94e2b5fae..000000000
--- a/ansible/roles/nova/templates/nova-compute-ironic.json.j2
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "command": "nova-compute",
- "config_files": [
- {
- "source": "{{ container_config_directory }}/nova.conf",
- "dest": "/etc/nova/nova.conf",
- "owner": "nova",
- "perm": "0600"
- }
- ],
- "permissions": [
- {
- "path": "/var/log/kolla/nova",
- "owner": "nova:nova",
- "recurse": true
- }
- ]
-}
diff --git a/ansible/roles/nova/templates/nova-compute.json.j2 b/ansible/roles/nova/templates/nova-compute.json.j2
deleted file mode 100644
index 018bf7a80..000000000
--- a/ansible/roles/nova/templates/nova-compute.json.j2
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "command": "nova-compute",
- "config_files": [
- {
- "source": "{{ container_config_directory }}/nova.conf",
- "dest": "/etc/nova/nova.conf",
- "owner": "nova",
- "perm": "0600"
- }{% if nova_backend == "rbd" %},
- {
- "source": "{{ container_config_directory }}/ceph.*",
- "dest": "/etc/ceph/",
- "owner": "nova",
- "perm": "0700"
- }{% endif %}
- ],
- "permissions": [
- {
- "path": "/var/log/kolla/nova",
- "owner": "nova:nova",
- "recurse": true
- },
- {
- "path": "/var/lib/nova",
- "owner": "nova:nova",
- "recurse": true
- }
- ]
-}
diff --git a/ansible/roles/nova/templates/nova-conductor.json.j2 b/ansible/roles/nova/templates/nova-conductor.json.j2
deleted file mode 100644
index 6a7328713..000000000
--- a/ansible/roles/nova/templates/nova-conductor.json.j2
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "command": "nova-conductor",
- "config_files": [
- {
- "source": "{{ container_config_directory }}/nova.conf",
- "dest": "/etc/nova/nova.conf",
- "owner": "nova",
- "perm": "0600"
- }
- ],
- "permissions": [
- {
- "path": "/var/log/kolla/nova",
- "owner": "nova:nova",
- "recurse": true
- }
- ]
-}
diff --git a/ansible/roles/nova/templates/nova-consoleauth.json.j2 b/ansible/roles/nova/templates/nova-consoleauth.json.j2
deleted file mode 100644
index 9cc3240d7..000000000
--- a/ansible/roles/nova/templates/nova-consoleauth.json.j2
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "command": "nova-consoleauth",
- "config_files": [
- {
- "source": "{{ container_config_directory }}/nova.conf",
- "dest": "/etc/nova/nova.conf",
- "owner": "nova",
- "perm": "0600"
- }
- ],
- "permissions": [
- {
- "path": "/var/log/kolla/nova",
- "owner": "nova:nova",
- "recurse": true
- }
- ]
-}
diff --git a/ansible/roles/nova/templates/nova-libvirt.json.j2 b/ansible/roles/nova/templates/nova-libvirt.json.j2
deleted file mode 100644
index aa19f7a39..000000000
--- a/ansible/roles/nova/templates/nova-libvirt.json.j2
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "command": "/usr/sbin/libvirtd --listen",
- "config_files": [
- {
- "source": "{{ container_config_directory }}/libvirtd.conf",
- "dest": "/etc/libvirt/libvirtd.conf",
- "owner": "root",
- "perm": "0644"
- },
- {
- "source": "{{ container_config_directory }}/qemu.conf",
- "dest": "/etc/libvirt/qemu.conf",
- "owner": "root",
- "perm": "0644"
- }{% if nova_backend == "rbd" %},
- {
- "source": "{{ container_config_directory }}/secrets",
- "dest": "/etc/libvirt/secrets",
- "owner": "root",
- "perm": "0600"
- },
- {
- "source": "{{ container_config_directory }}/ceph.conf",
- "dest": "/etc/ceph/ceph.conf",
- "owner": "root",
- "perm": "0600"
- }{% endif %}
- ]
-}
diff --git a/ansible/roles/nova/templates/nova-network.json.j2 b/ansible/roles/nova/templates/nova-network.json.j2
deleted file mode 100644
index 53e93e692..000000000
--- a/ansible/roles/nova/templates/nova-network.json.j2
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "command": "nova-network",
- "config_files": [
- {
- "source": "{{ container_config_directory }}/nova.conf",
- "dest": "/etc/nova/nova.conf",
- "owner": "nova",
- "perm": "0600"
- }
- ]
-}
diff --git a/ansible/roles/nova/templates/nova-novncproxy.json.j2 b/ansible/roles/nova/templates/nova-novncproxy.json.j2
deleted file mode 100644
index d34efb3d6..000000000
--- a/ansible/roles/nova/templates/nova-novncproxy.json.j2
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "command": "nova-novncproxy",
- "config_files": [
- {
- "source": "{{ container_config_directory }}/nova.conf",
- "dest": "/etc/nova/nova.conf",
- "owner": "nova",
- "perm": "0600"
- }
- ],
- "permissions": [
- {
- "path": "/var/log/kolla/nova",
- "owner": "nova:nova",
- "recurse": true
- }
- ]
-}
diff --git a/ansible/roles/nova/templates/nova-scheduler.json.j2 b/ansible/roles/nova/templates/nova-scheduler.json.j2
deleted file mode 100644
index 36638987a..000000000
--- a/ansible/roles/nova/templates/nova-scheduler.json.j2
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "command": "nova-scheduler",
- "config_files": [
- {
- "source": "{{ container_config_directory }}/nova.conf",
- "dest": "/etc/nova/nova.conf",
- "owner": "nova",
- "perm": "0600"
- }
- ],
- "permissions": [
- {
- "path": "/var/log/kolla/nova",
- "owner": "nova:nova",
- "recurse": true
- }
- ]
-}
diff --git a/ansible/roles/nova/templates/nova-spicehtml5proxy.json.j2 b/ansible/roles/nova/templates/nova-spicehtml5proxy.json.j2
deleted file mode 100644
index e12354bf4..000000000
--- a/ansible/roles/nova/templates/nova-spicehtml5proxy.json.j2
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "command": "nova-spicehtml5proxy",
- "config_files": [
- {
- "source": "{{ container_config_directory }}/nova.conf",
- "dest": "/etc/nova/nova.conf",
- "owner": "nova",
- "perm": "0600"
- }
- ],
- "permissions": [
- {
- "path": "/var/log/kolla/nova",
- "owner": "nova:nova",
- "recurse": true
- }
- ]
-}
diff --git a/ansible/roles/nova/templates/nova-ssh.json.j2 b/ansible/roles/nova/templates/nova-ssh.json.j2
deleted file mode 100644
index 1fb041ecc..000000000
--- a/ansible/roles/nova/templates/nova-ssh.json.j2
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "command": "/usr/sbin/sshd -D",
- "config_files": [
- {
- "source": "{{ container_config_directory }}/sshd_config",
- "dest": "/etc/ssh/sshd_config",
- "owner": "root",
- "perm": "0644"
- },
- {
- "source": "{{ container_config_directory }}/ssh_config",
- "dest": "/var/lib/nova/.ssh/config",
- "owner": "nova",
- "perm": "0600"
- },
- {
- "source": "{{ container_config_directory }}/id_rsa",
- "dest": "/var/lib/nova/.ssh/id_rsa",
- "owner": "nova",
- "perm": "0600"
- },
- {
- "source": "{{ container_config_directory }}/id_rsa.pub",
- "dest": "/var/lib/nova/.ssh/authorized_keys",
- "owner": "nova",
- "perm": "0600"
- }
- ]
-}
diff --git a/ansible/roles/nova/templates/nova.conf.j2 b/ansible/roles/nova/templates/nova.conf.j2
deleted file mode 100644
index a686e0dc3..000000000
--- a/ansible/roles/nova/templates/nova.conf.j2
+++ /dev/null
@@ -1,209 +0,0 @@
-# nova.conf
-[DEFAULT]
-debug = {{ nova_logging_debug }}
-
-log_dir = /var/log/kolla/nova
-use_forwarded_for = true
-
-state_path = /var/lib/nova
-
-{% if kolla_enable_tls_external | bool %}
-secure_proxy_ssl_header = X-Forwarded-Proto
-{% endif %}
-
-osapi_compute_listen = {{ api_interface_address }}
-osapi_compute_listen_port = {{ nova_api_port }}
-osapi_compute_workers = {{ openstack_service_workers }}
-metadata_workers = {{ openstack_service_workers }}
-
-metadata_listen = {{ api_interface_address }}
-metadata_listen_port = {{ nova_metadata_port }}
-
-use_neutron = True
-firewall_driver = nova.virt.firewall.NoopFirewallDriver
-
-{% if neutron_plugin_agent == "openvswitch" %}
-linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
-{% elif neutron_plugin_agent == "linuxbridge" %}
-linuxnet_interface_driver = nova.network.linux_net.NeutronLinuxBridgeInterfaceDriver
-{% endif %}
-
-allow_resize_to_same_host = true
-
-{% if enable_ironic | bool %}
-scheduler_host_manager = ironic_host_manager
-{% endif %}
-
-{% if service_name == "nova-compute-ironic" %}
-compute_driver = ironic.IronicDriver
-vnc_enabled = False
-ram_allocation_ratio = 1.0
-reserved_host_memory_mb = 0
-{% elif enable_nova_fake | bool %}
-scheduler_default_filters = RetryFilter,AvailabilityZoneFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter
-host = {{ ansible_hostname }}_{{ item }}
-compute_driver = fake.FakeDriver
-{% else %}
-compute_driver = libvirt.LibvirtDriver
-{% endif %}
-
-# Though my_ip is not used directly, lots of other variables use $my_ip
-my_ip = {{ api_interface_address }}
-
-{% if enable_ceilometer | bool %}
-instance_usage_audit = True
-instance_usage_audit_period = hour
-notify_on_state_change = vm_and_task_state
-{% if enable_watcher | bool %}
-compute_monitors=nova.compute.monitors.cpu.virt_driver
-{% endif %}
-{% endif %}
-
-transport_url = rabbit://{% for host in groups['rabbitmq'] %}{{ rabbitmq_user }}:{{ rabbitmq_password }}@{% if orchestration_engine == 'KUBERNETES' %}rabbitmq{% else %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}{% endif %}:{{ rabbitmq_port }}{% if not loop.last %},{% endif %}{% endfor %}
-
-[conductor]
-workers = {{ openstack_service_workers }}
-
-{% if nova_console == 'novnc' %}
-[vnc]
-novncproxy_host = {{ api_interface_address }}
-novncproxy_port = {{ nova_novncproxy_port }}
-vncserver_listen = {{ api_interface_address }}
-vncserver_proxyclient_address = {{ api_interface_address }}
-{% if inventory_hostname in groups['compute'] %}
-novncproxy_base_url = {{ public_protocol }}://{% if orchestration_engine == 'KUBERNETES' %}kolla_kubernetes_external_vip{% else %}{{ kolla_external_fqdn }}{% endif %}:{{ nova_novncproxy_port }}/vnc_auto.html
-{% endif %}
-{% elif nova_console == 'spice' %}
-[vnc]
-# We have to turn off vnc to use spice
-enabled = false
-[spice]
-enabled = true
-server_listen = {{ api_interface_address }}
-server_proxyclient_address = {{ api_interface_address }}
-{% if inventory_hostname in groups['compute'] %}
-html5proxy_base_url = {{ public_protocol }}://{% if orchestration_engine == 'KUBERNETES' %}kolla_kubernetes_external_vip{% else %}{{ kolla_external_fqdn }}{% endif %}:{{ nova_spicehtml5proxy_port }}/spice_auto.html
-{% endif %}
-html5proxy_host = {{ api_interface_address }}
-html5proxy_port = {{ nova_spicehtml5proxy_port }}
-{% endif %}
-
-{% if service_name == "nova-compute-ironic" %}
-[ironic]
-username = {{ ironic_keystone_user }}
-password = {{ ironic_keystone_password }}
-auth_url = {{ openstack_auth.auth_url }}/v3
-auth_type = password
-project_name = service
-user_domain_name = default
-project_domain_name = default
-api_endpoint = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ ironic_api_port }}/v1
-{% endif %}
-
-[oslo_concurrency]
-lock_path = /var/lib/nova/tmp
-
-[glance]
-api_servers = {% for host in groups['glance-api'] %}{{ internal_protocol }}://{% if orchestration_engine == 'KUBERNETES' %}glance-api{% else %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}{% endif %}:{{ glance_api_port }}{% if not loop.last %},{% endif %}{% endfor %}
-
-num_retries = {{ groups['glance-api'] | length }}
-
-[cinder]
-catalog_info = volumev2:cinderv2:internalURL
-
-[neutron]
-{% if orchestration_engine == 'KUBERNETES' %}
-url = {{ internal_protocol }}://neutron-server:{{ neutron_server_port }}
-{% else %}
-url = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ neutron_server_port }}
-{% endif %}
-metadata_proxy_shared_secret = {{ metadata_secret }}
-service_metadata_proxy = true
-
-auth_url = {{ keystone_admin_url }}
-auth_type = password
-project_domain_name = default
-user_domain_id = default
-project_name = service
-username = {{ neutron_keystone_user }}
-password = {{ neutron_keystone_password }}
-
-[database]
-connection = mysql+pymysql://{{ nova_database_user }}:{{ nova_database_password }}@{{ nova_database_address }}/{{ nova_database_name }}
-max_pool_size = 50
-max_overflow = 1000
-max_retries = -1
-
-[api_database]
-connection = mysql+pymysql://{{ nova_api_database_user }}:{{ nova_api_database_password }}@{{ nova_api_database_address }}/{{ nova_api_database_name }}
-max_retries = -1
-
-[cache]
-backend = oslo_cache.memcache_pool
-enabled = True
-memcache_servers = {% for host in groups['memcached'] %}{% if orchestration_engine == 'KUBERNETES' %}memcached{% else %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}{% endif %}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
-
-
-[keystone_authtoken]
-{% if orchestration_engine == 'KUBERNETES' %}
-auth_uri = {{ keystone_internal_url }}
-auth_url = {{ keystone_admin_url }}
-{% else %}
-auth_uri = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_public_port }}
-auth_url = {{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }}
-{% endif %}
-auth_type = password
-project_domain_id = default
-user_domain_id = default
-project_name = service
-username = {{ nova_keystone_user }}
-password = {{ nova_keystone_password }}
-
-memcache_security_strategy = ENCRYPT
-memcache_secret_key = {{ memcache_secret_key }}
-memcached_servers = {% for host in groups['memcached'] %}{% if orchestration_engine == 'KUBERNETES' %}memcached{% else %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}{% endif%}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
-
-
-[libvirt]
-connection_uri = "qemu+tcp://{{ api_interface_address }}/system"
-{% if enable_ceph | bool and nova_backend == "rbd" %}
-images_type = rbd
-images_rbd_pool = {{ ceph_nova_pool_name }}
-images_rbd_ceph_conf = /etc/ceph/ceph.conf
-rbd_user = nova
-disk_cachemodes="network=writeback"
-{% if nova_hw_disk_discard != '' %}
-hw_disk_discard = {{ nova_hw_disk_discard }}
-{% endif %}
-{% endif %}
-{% if nova_backend == "rbd" %}
-rbd_secret_uuid = {{ rbd_secret_uuid }}
-{% endif %}
-
-
-[upgrade_levels]
-compute = auto
-
-[oslo_messaging_notifications]
-{% if enable_ceilometer | bool or enable_designate | bool %}
-driver = messagingv2
-{% set topics=["notifications" if enable_ceilometer|bool else "", "notifications_designate" if enable_designate|bool else ""] %}
-topcis = {{ topics|reject("equalto", "")|list|join(",") }}
-{% else %}
-driver = noop
-{% endif %}
-
-[privsep_entrypoint]
-helper_command=sudo nova-rootwrap /etc/nova/rootwrap.conf privsep-helper --config-file /etc/nova/nova.conf
-
-[glance]
-debug = {{ nova_logging_debug }}
-
-[guestfs]
-debug = {{ nova_logging_debug }}
-
-[wsgi]
-api_paste_config = /etc/nova/api-paste.ini
-
-[scheduler]
-max_attempts = 10
diff --git a/ansible/roles/nova/templates/qemu.conf.j2 b/ansible/roles/nova/templates/qemu.conf.j2
deleted file mode 100644
index 16bd9d4d9..000000000
--- a/ansible/roles/nova/templates/qemu.conf.j2
+++ /dev/null
@@ -1 +0,0 @@
-stdio_handler = "file"
diff --git a/ansible/roles/nova/templates/secret.xml.j2 b/ansible/roles/nova/templates/secret.xml.j2
deleted file mode 100644
index eab903be4..000000000
--- a/ansible/roles/nova/templates/secret.xml.j2
+++ /dev/null
@@ -1,6 +0,0 @@
-<secret ephemeral='no' private='no'>
- <uuid>{{ rbd_secret_uuid }}</uuid>
- <usage type='ceph'>
- <name>client.nova secret</name>
- </usage>
-</secret>
diff --git a/ansible/roles/nova/templates/ssh_config.j2 b/ansible/roles/nova/templates/ssh_config.j2
deleted file mode 100644
index 7c5c962f9..000000000
--- a/ansible/roles/nova/templates/ssh_config.j2
+++ /dev/null
@@ -1,4 +0,0 @@
-Host *
- StrictHostKeyChecking no
- UserKnownHostsFile /dev/null
- port {{ nova_ssh_port }}
diff --git a/ansible/roles/nova/templates/sshd_config.j2 b/ansible/roles/nova/templates/sshd_config.j2
deleted file mode 100644
index 29bea8dea..000000000
--- a/ansible/roles/nova/templates/sshd_config.j2
+++ /dev/null
@@ -1,5 +0,0 @@
-Port {{ nova_ssh_port }}
-ListenAddress {{ api_interface_address }}
-
-SyslogFacility AUTHPRIV
-UsePAM yes