Merge "Manage clouds.yaml files in ansible"
This commit is contained in:
commit
e54afccc77
@ -169,7 +169,6 @@ node 'puppetmaster.openstack.org' {
|
|||||||
pin_puppet => '3.6.',
|
pin_puppet => '3.6.',
|
||||||
}
|
}
|
||||||
class { 'openstack_project::puppetmaster':
|
class { 'openstack_project::puppetmaster':
|
||||||
puppetmaster_clouds => hiera('puppetmaster_clouds'),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -818,7 +817,6 @@ node /^nl\d+\.openstack\.org$/ {
|
|||||||
$packethost_username = hiera('nodepool_packethost_username', 'username')
|
$packethost_username = hiera('nodepool_packethost_username', 'username')
|
||||||
$packethost_password = hiera('nodepool_packethost_password')
|
$packethost_password = hiera('nodepool_packethost_password')
|
||||||
$packethost_project = hiera('nodepool_packethost_project', 'project')
|
$packethost_project = hiera('nodepool_packethost_project', 'project')
|
||||||
$clouds_yaml = template("openstack_project/nodepool/clouds.yaml.erb")
|
|
||||||
|
|
||||||
class { 'openstack_project::server': }
|
class { 'openstack_project::server': }
|
||||||
|
|
||||||
@ -827,7 +825,6 @@ node /^nl\d+\.openstack\.org$/ {
|
|||||||
class { '::openstackci::nodepool_launcher':
|
class { '::openstackci::nodepool_launcher':
|
||||||
nodepool_ssh_private_key => hiera('zuul_worker_ssh_private_key_contents'),
|
nodepool_ssh_private_key => hiera('zuul_worker_ssh_private_key_contents'),
|
||||||
project_config_repo => 'https://git.openstack.org/openstack-infra/project-config',
|
project_config_repo => 'https://git.openstack.org/openstack-infra/project-config',
|
||||||
oscc_file_contents => $clouds_yaml,
|
|
||||||
statsd_host => 'graphite.openstack.org',
|
statsd_host => 'graphite.openstack.org',
|
||||||
revision => 'master',
|
revision => 'master',
|
||||||
python_version => 3,
|
python_version => 3,
|
||||||
@ -869,7 +866,6 @@ node /^nb\d+\.openstack\.org$/ {
|
|||||||
$packethost_username = hiera('nodepool_packethost_username', 'username')
|
$packethost_username = hiera('nodepool_packethost_username', 'username')
|
||||||
$packethost_password = hiera('nodepool_packethost_password')
|
$packethost_password = hiera('nodepool_packethost_password')
|
||||||
$packethost_project = hiera('nodepool_packethost_project', 'project')
|
$packethost_project = hiera('nodepool_packethost_project', 'project')
|
||||||
$clouds_yaml = template("openstack_project/nodepool/clouds.yaml.erb")
|
|
||||||
|
|
||||||
class { 'openstack_project::server': }
|
class { 'openstack_project::server': }
|
||||||
|
|
||||||
@ -880,7 +876,6 @@ node /^nb\d+\.openstack\.org$/ {
|
|||||||
vhost_name => $::fqdn,
|
vhost_name => $::fqdn,
|
||||||
enable_build_log_via_http => true,
|
enable_build_log_via_http => true,
|
||||||
project_config_repo => 'https://git.openstack.org/openstack-infra/project-config',
|
project_config_repo => 'https://git.openstack.org/openstack-infra/project-config',
|
||||||
oscc_file_contents => $clouds_yaml,
|
|
||||||
statsd_host => 'graphite.openstack.org',
|
statsd_host => 'graphite.openstack.org',
|
||||||
upload_workers => '16',
|
upload_workers => '16',
|
||||||
revision => 'master',
|
revision => 'master',
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
# == Class: openstack_project::puppetmaster
|
# == Class: openstack_project::puppetmaster
|
||||||
#
|
#
|
||||||
class openstack_project::puppetmaster (
|
class openstack_project::puppetmaster (
|
||||||
$puppetmaster_clouds,
|
|
||||||
$root_rsa_key = 'xxx',
|
$root_rsa_key = 'xxx',
|
||||||
) {
|
) {
|
||||||
include logrotate
|
include logrotate
|
||||||
@ -31,30 +30,6 @@ class openstack_project::puppetmaster (
|
|||||||
mode => '0750',
|
mode => '0750',
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/openstack':
|
|
||||||
ensure => directory,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'admin',
|
|
||||||
mode => '0750',
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/etc/openstack/clouds.yaml':
|
|
||||||
ensure => present,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'admin',
|
|
||||||
mode => '0660',
|
|
||||||
content => template('openstack_project/puppetmaster/ansible-clouds.yaml.erb'),
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/etc/openstack/all-clouds.yaml':
|
|
||||||
ensure => present,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'admin',
|
|
||||||
mode => '0660',
|
|
||||||
content => template('openstack_project/puppetmaster/all-clouds.yaml.erb'),
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# For signing key management
|
# For signing key management
|
||||||
package { 'gnupg':
|
package { 'gnupg':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
@ -11,7 +11,19 @@
|
|||||||
- timezone
|
- timezone
|
||||||
- unbound
|
- unbound
|
||||||
|
|
||||||
- hosts: nodepool-launcher:nodepool-builder:bridge.openstack.org:!disabled
|
- hosts: bridge.openstack.org:!disabled
|
||||||
|
tasks:
|
||||||
|
- include_role:
|
||||||
|
name: configure-openstacksdk
|
||||||
|
vars:
|
||||||
|
openstacksdk_config_file: '{{ openstacksdk_config_dir }}/all-clouds.yaml'
|
||||||
|
openstacksdk_config_template: clouds/bridge_all_clouds.yaml.j2
|
||||||
|
- include_role:
|
||||||
|
name: configure-openstacksdk
|
||||||
|
vars:
|
||||||
|
openstacksdk_config_template: clouds/bridge_clouds.yaml.j2
|
||||||
|
|
||||||
|
- hosts: nodepool-launcher:nodepool-builder:!disabled
|
||||||
strategy: free
|
strategy: free
|
||||||
roles:
|
roles:
|
||||||
- configure-openstacksdk
|
- configure-openstacksdk
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
openstacksdk_config_dir: /home/nodepool/.config/openstack
|
openstacksdk_config_dir: /home/nodepool/.config/openstack
|
||||||
openstacksdk_config_owner: nodepool
|
openstacksdk_config_owner: nodepool
|
||||||
openstacksdk_config_group: nodepool
|
openstacksdk_config_group: nodepool
|
||||||
|
openstacksdk_config_template: clouds/nodepool_clouds.yaml.j2
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
openstacksdk_config_dir: /home/nodepool/.config/openstack
|
openstacksdk_config_dir: /home/nodepool/.config/openstack
|
||||||
openstacksdk_config_owner: nodepool
|
openstacksdk_config_owner: nodepool
|
||||||
openstacksdk_config_group: nodepool
|
openstacksdk_config_group: nodepool
|
||||||
|
openstacksdk_config_template: clouds/nodepool_clouds.yaml.j2
|
||||||
|
@ -10,5 +10,10 @@ Configure openstacksdk files needed by nodepool and ansible.
|
|||||||
.. zuul:rolevar:: openstacksdk_config_owner
|
.. zuul:rolevar:: openstacksdk_config_owner
|
||||||
:default: root
|
:default: root
|
||||||
|
|
||||||
.. zuul:rolevar:: openstacksdf_config_group
|
.. zuul:rolevar:: openstacksdk_config_group
|
||||||
:default: root
|
:default: root
|
||||||
|
|
||||||
|
.. zuul:rolevar:: openstacksdk_config_file
|
||||||
|
:default: {{ openstacksdk_config_dir }}/clouds.yaml
|
||||||
|
|
||||||
|
.. zuul:rolevar:: openstacksdk_config_template
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
openstacksdk_config_dir: /etc/openstack
|
openstacksdk_config_dir: /etc/openstack
|
||||||
openstacksdk_config_owner: root
|
openstacksdk_config_owner: root
|
||||||
openstacksdk_config_group: root
|
openstacksdk_config_group: root
|
||||||
|
openstacksdk_config_file: '{{ openstacksdk_config_dir }}/clouds.yaml'
|
||||||
|
@ -13,3 +13,11 @@
|
|||||||
mode: 0640
|
mode: 0640
|
||||||
owner: '{{ openstacksdk_config_owner }}'
|
owner: '{{ openstacksdk_config_owner }}'
|
||||||
src: limestone_cacert.pem
|
src: limestone_cacert.pem
|
||||||
|
|
||||||
|
- name: Install the clouds config file
|
||||||
|
template:
|
||||||
|
src: '{{ openstacksdk_config_template }}'
|
||||||
|
dest: '{{ openstacksdk_config_file }}'
|
||||||
|
group: '{{ openstacksdk_config_group }}'
|
||||||
|
owner: '{{ openstacksdk_config_owner }}'
|
||||||
|
mode: 0640
|
||||||
|
@ -2,9 +2,9 @@ clouds:
|
|||||||
openstackci-inap:
|
openstackci-inap:
|
||||||
profile: internap
|
profile: internap
|
||||||
auth:
|
auth:
|
||||||
username: <%= @puppetmaster_clouds['openstackci_internap_username'] %>
|
username: '{{ clouds.openstackci_internap_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackci_internap_password'] %>
|
password: '{{ clouds.openstackci_internap_password }}'
|
||||||
project_name: <%= @puppetmaster_clouds['openstackci_internap_project_name'] %>
|
project_name: '{{ clouds.openstackci_internap_project_name }}'
|
||||||
regions:
|
regions:
|
||||||
- name: mtl01
|
- name: mtl01
|
||||||
values:
|
values:
|
||||||
@ -14,9 +14,9 @@ clouds:
|
|||||||
openstackjenkins-inap:
|
openstackjenkins-inap:
|
||||||
profile: internap
|
profile: internap
|
||||||
auth:
|
auth:
|
||||||
username: <%= @puppetmaster_clouds['openstackjenkins_internap_username'] %>
|
username: '{{ clouds.openstackjenkins_internap_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackjenkins_internap_password'] %>
|
password: '{{ clouds.openstackjenkins_internap_password }}'
|
||||||
project_name: <%= @puppetmaster_clouds['openstackjenkins_internap_project_name'] %>
|
project_name: '{{ clouds.openstackjenkins_internap_project_name }}'
|
||||||
regions:
|
regions:
|
||||||
- name: mtl01
|
- name: mtl01
|
||||||
values:
|
values:
|
||||||
@ -33,9 +33,9 @@ clouds:
|
|||||||
# for now ignore ipv6
|
# for now ignore ipv6
|
||||||
force_ipv4: true
|
force_ipv4: true
|
||||||
auth:
|
auth:
|
||||||
username: <%= @puppetmaster_clouds['openstackci_ovh_username'] %>
|
username: '{{ clouds.openstackci_ovh_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackci_ovh_password'] %>
|
password: '{{ clouds.openstackci_ovh_password }}'
|
||||||
project_name: <%= @puppetmaster_clouds['openstackci_ovh_project_name'] %>
|
project_name: '{{ clouds.openstackci_ovh_project_name }}'
|
||||||
openstackci-rax:
|
openstackci-rax:
|
||||||
regions:
|
regions:
|
||||||
- DFW
|
- DFW
|
||||||
@ -43,9 +43,9 @@ clouds:
|
|||||||
- IAD
|
- IAD
|
||||||
profile: rackspace
|
profile: rackspace
|
||||||
auth:
|
auth:
|
||||||
username: <%= @puppetmaster_clouds['openstackci_rax_username'] %>
|
username: '{{ clouds.openstackci_rax_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackci_rax_password'] %>
|
password: '{{ clouds.openstackci_rax_password }}'
|
||||||
project_id: <%= @puppetmaster_clouds['openstackci_rax_project_id'] %>
|
project_id: '{{ clouds.openstackci_rax_project_id }}'
|
||||||
openstackjenkins-rax:
|
openstackjenkins-rax:
|
||||||
regions:
|
regions:
|
||||||
- DFW
|
- DFW
|
||||||
@ -53,9 +53,9 @@ clouds:
|
|||||||
- IAD
|
- IAD
|
||||||
profile: rackspace
|
profile: rackspace
|
||||||
auth:
|
auth:
|
||||||
username: <%= @puppetmaster_clouds['openstackjenkins_rax_username'] %>
|
username: '{{ clouds.openstackjenkins_rax_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackjenkins_rax_password'] %>
|
password: '{{ clouds.openstackjenkins_rax_password }}'
|
||||||
project_id: <%= @puppetmaster_clouds['openstackjenkins_rax_project_id'] %>
|
project_id: '{{ clouds.openstackjenkins_rax_project_id }}'
|
||||||
openstackjenkins-ovh:
|
openstackjenkins-ovh:
|
||||||
regions:
|
regions:
|
||||||
- GRA1
|
- GRA1
|
||||||
@ -66,18 +66,18 @@ clouds:
|
|||||||
# for now ignore ipv6
|
# for now ignore ipv6
|
||||||
force_ipv4: true
|
force_ipv4: true
|
||||||
auth:
|
auth:
|
||||||
username: <%= @puppetmaster_clouds['openstackjenkins_ovh_username'] %>
|
username: '{{ clouds.openstackjenkins_ovh_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackjenkins_ovh_password'] %>
|
password: '{{ clouds.openstackjenkins_ovh_password }}'
|
||||||
project_name: <%= @puppetmaster_clouds['openstackjenkins_ovh_project_name'] %>
|
project_name: '{{ clouds.openstackjenkins_ovh_project_name }}'
|
||||||
openstackjenkins-vexxhost:
|
openstackjenkins-vexxhost:
|
||||||
regions:
|
regions:
|
||||||
- ca-ymq-1
|
- ca-ymq-1
|
||||||
- sjc1
|
- sjc1
|
||||||
profile: vexxhost
|
profile: vexxhost
|
||||||
auth:
|
auth:
|
||||||
username: '<%= @puppetmaster_clouds['openstackjenkins_vexxhost_username'] %>'
|
username: '{{ clouds.openstackjenkins_vexxhost_username }}'
|
||||||
password: '<%= @puppetmaster_clouds['openstackjenkins_vexxhost_password'] %>'
|
password: '{{ clouds.openstackjenkins_vexxhost_password }}'
|
||||||
project_name: '<%= @puppetmaster_clouds['openstackjenkins_vexxhost_project_name'] %>'
|
project_name: '{{ clouds.openstackjenkins_vexxhost_project_name }}'
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
openstackci-vexxhost:
|
openstackci-vexxhost:
|
||||||
@ -86,9 +86,9 @@ clouds:
|
|||||||
- sjc1
|
- sjc1
|
||||||
profile: vexxhost
|
profile: vexxhost
|
||||||
auth:
|
auth:
|
||||||
username: '<%= @puppetmaster_clouds['openstackci_vexxhost_username'] %>'
|
username: '{{ clouds.openstackci_vexxhost_username }}'
|
||||||
password: '<%= @puppetmaster_clouds['openstackci_vexxhost_password'] %>'
|
password: '{{ clouds.openstackci_vexxhost_password }}'
|
||||||
project_name: '<%= @puppetmaster_clouds['openstackci_vexxhost_project_name'] %>'
|
project_name: '{{ clouds.openstackci_vexxhost_project_name }}'
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
openstackci-citycloud:
|
openstackci-citycloud:
|
||||||
@ -99,8 +99,8 @@ clouds:
|
|||||||
- Sto2
|
- Sto2
|
||||||
profile: citycloud
|
profile: citycloud
|
||||||
auth:
|
auth:
|
||||||
username: <%= @puppetmaster_clouds['openstackci_citycloud_username'] %>
|
username: '{{ clouds.openstackci_citycloud_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackci_citycloud_password'] %>
|
password: '{{ clouds.openstackci_citycloud_password }}'
|
||||||
project_id: 656841f5d46e4b0889129d1fc20bd0b8
|
project_id: 656841f5d46e4b0889129d1fc20bd0b8
|
||||||
project_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
project_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
||||||
user_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
user_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
||||||
@ -112,8 +112,8 @@ clouds:
|
|||||||
- Sto2
|
- Sto2
|
||||||
profile: citycloud
|
profile: citycloud
|
||||||
auth:
|
auth:
|
||||||
username: <%= @puppetmaster_clouds['openstackzuul_citycloud_username'] %>
|
username: '{{ clouds.openstackzuul_citycloud_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackzuul_citycloud_password'] %>
|
password: '{{ clouds.openstackzuul_citycloud_password }}'
|
||||||
project_id: bed89257500340af8d0fbe7141b1bfd6
|
project_id: bed89257500340af8d0fbe7141b1bfd6
|
||||||
project_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
project_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
||||||
user_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
user_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
||||||
@ -122,9 +122,9 @@ clouds:
|
|||||||
- RegionOne
|
- RegionOne
|
||||||
auth:
|
auth:
|
||||||
auth_url: https://cn1.linaro.cloud:35357
|
auth_url: https://cn1.linaro.cloud:35357
|
||||||
username: <%= @puppetmaster_clouds['openstackci_linaro_username'] %>
|
username: '{{ clouds.openstackci_linaro_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackci_linaro_password'] %>
|
password: '{{ clouds.openstackci_linaro_password }}'
|
||||||
project_name: <%= @puppetmaster_clouds['openstackci_linaro_project_name'] %>
|
project_name: '{{ clouds.openstackci_linaro_project_name }}'
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
openstackzuul-linaro:
|
openstackzuul-linaro:
|
||||||
@ -132,9 +132,9 @@ clouds:
|
|||||||
- RegionOne
|
- RegionOne
|
||||||
auth:
|
auth:
|
||||||
auth_url: https://cn1.linaro.cloud:35357
|
auth_url: https://cn1.linaro.cloud:35357
|
||||||
username: <%= @puppetmaster_clouds['openstackzuul_linaro_username'] %>
|
username: '{{ clouds.openstackzuul_linaro_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackzuul_linaro_password'] %>
|
password: '{{ clouds.openstackzuul_linaro_password }}'
|
||||||
project_name: <%= @puppetmaster_clouds['openstackzuul_linaro_project_name'] %>
|
project_name: '{{ clouds.openstackzuul_linaro_project_name }}'
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
openstackci-limestone:
|
openstackci-limestone:
|
||||||
@ -151,9 +151,9 @@ clouds:
|
|||||||
nat_source: true
|
nat_source: true
|
||||||
auth:
|
auth:
|
||||||
auth_url: https://osa.continuous.pw:5000
|
auth_url: https://osa.continuous.pw:5000
|
||||||
username: <%= @puppetmaster_clouds['openstackci_limestone_username'] %>
|
username: '{{ clouds.openstackci_limestone_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackci_limestone_password'] %>
|
password: '{{ clouds.openstackci_limestone_password }}'
|
||||||
project_name: <%= @puppetmaster_clouds['openstackci_limestone_project_name'] %>
|
project_name: '{{ clouds.openstackci_limestone_project_name }}'
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
identity_api_version: 3
|
identity_api_version: 3
|
||||||
@ -172,9 +172,9 @@ clouds:
|
|||||||
nat_source: true
|
nat_source: true
|
||||||
auth:
|
auth:
|
||||||
auth_url: https://osa.continuous.pw:5000
|
auth_url: https://osa.continuous.pw:5000
|
||||||
username: <%= @puppetmaster_clouds['openstackzuul_limestone_username'] %>
|
username: '{{ clouds.openstackzuul_limestone_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackzuul_limestone_password'] %>
|
password: '{{ clouds.openstackzuul_limestone_password }}'
|
||||||
project_name: <%= @puppetmaster_clouds['openstackzuul_limestone_project_name'] %>
|
project_name: '{{ clouds.openstackzuul_limestone_project_name }}'
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
identity_api_version: 3
|
identity_api_version: 3
|
||||||
@ -188,9 +188,9 @@ clouds:
|
|||||||
default_interface: True
|
default_interface: True
|
||||||
auth:
|
auth:
|
||||||
auth_url: https://packet.platform9.net/keystone
|
auth_url: https://packet.platform9.net/keystone
|
||||||
username: <%= @puppetmaster_clouds['openstackci_packethost_username'] %>
|
username: '{{ clouds.openstackci_packethost_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackci_packethost_password'] %>
|
password: '{{ clouds.openstackci_packethost_password }}'
|
||||||
project_name: <%= @puppetmaster_clouds['openstackci_packethost_project_name'] %>
|
project_name: '{{ clouds.openstackci_packethost_project_name }}'
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
|
|
||||||
@ -203,9 +203,9 @@ clouds:
|
|||||||
default_interface: True
|
default_interface: True
|
||||||
auth:
|
auth:
|
||||||
auth_url: https://packet.platform9.net/keystone
|
auth_url: https://packet.platform9.net/keystone
|
||||||
username: <%= @puppetmaster_clouds['openstackzuul_packethost_username'] %>
|
username: '{{ clouds.openstackzuul_packethost_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackzuul_packethost_password'] %>
|
password: '{{ clouds.openstackzuul_packethost_password }}'
|
||||||
project_name: <%= @puppetmaster_clouds['openstackzuul_packethost_project_name'] %>
|
project_name: '{{ clouds.openstackzuul_packethost_project_name }}'
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
identity_api_version: '3'
|
identity_api_version: '3'
|
@ -13,9 +13,9 @@ clouds:
|
|||||||
openstackci-inap:
|
openstackci-inap:
|
||||||
profile: internap
|
profile: internap
|
||||||
auth:
|
auth:
|
||||||
username: <%= @puppetmaster_clouds['openstackci_internap_username'] %>
|
username: '{{ clouds.openstackci_internap_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackci_internap_password'] %>
|
password: '{{ clouds.openstackci_internap_password }}'
|
||||||
project_name: <%= @puppetmaster_clouds['openstackci_internap_project_name'] %>
|
project_name: '{{ clouds.openstackci_internap_project_name }}'
|
||||||
regions:
|
regions:
|
||||||
- name: mtl01
|
- name: mtl01
|
||||||
values:
|
values:
|
||||||
@ -32,9 +32,9 @@ clouds:
|
|||||||
# for now ignore ipv6
|
# for now ignore ipv6
|
||||||
force_ipv4: true
|
force_ipv4: true
|
||||||
auth:
|
auth:
|
||||||
username: <%= @puppetmaster_clouds['openstackci_ovh_username'] %>
|
username: '{{ clouds.openstackci_ovh_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackci_ovh_password'] %>
|
password: '{{ clouds.openstackci_ovh_password }}'
|
||||||
project_name: <%= @puppetmaster_clouds['openstackci_ovh_project_name'] %>
|
project_name: '{{ clouds.openstackci_ovh_project_name }}'
|
||||||
openstackci-rax:
|
openstackci-rax:
|
||||||
regions:
|
regions:
|
||||||
- DFW
|
- DFW
|
||||||
@ -42,18 +42,18 @@ clouds:
|
|||||||
- IAD
|
- IAD
|
||||||
profile: rackspace
|
profile: rackspace
|
||||||
auth:
|
auth:
|
||||||
username: <%= @puppetmaster_clouds['openstackci_rax_username'] %>
|
username: '{{ clouds.openstackci_rax_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackci_rax_password'] %>
|
password: '{{ clouds.openstackci_rax_password }}'
|
||||||
project_id: <%= @puppetmaster_clouds['openstackci_rax_project_id'] %>
|
project_id: '{{ clouds.openstackci_rax_project_id }}'
|
||||||
openstackci-vexxhost:
|
openstackci-vexxhost:
|
||||||
regions:
|
regions:
|
||||||
- ca-ymq-1
|
- ca-ymq-1
|
||||||
- sjc1
|
- sjc1
|
||||||
profile: vexxhost
|
profile: vexxhost
|
||||||
auth:
|
auth:
|
||||||
username: '<%= @puppetmaster_clouds['openstackci_vexxhost_username'] %>'
|
username: '{{ clouds.openstackci_vexxhost_username }}'
|
||||||
password: '<%= @puppetmaster_clouds['openstackci_vexxhost_password'] %>'
|
password: '{{ clouds.openstackci_vexxhost_password }}'
|
||||||
project_name: '<%= @puppetmaster_clouds['openstackci_vexxhost_project_name'] %>'
|
project_name: '{{ clouds.openstackci_vexxhost_project_name }}'
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
openstackci-citycloud:
|
openstackci-citycloud:
|
||||||
@ -64,8 +64,8 @@ clouds:
|
|||||||
- Sto2
|
- Sto2
|
||||||
profile: citycloud
|
profile: citycloud
|
||||||
auth:
|
auth:
|
||||||
username: <%= @puppetmaster_clouds['openstackci_citycloud_username'] %>
|
username: '{{ clouds.openstackci_citycloud_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackci_citycloud_password'] %>
|
password: '{{ clouds.openstackci_citycloud_password }}'
|
||||||
project_id: 656841f5d46e4b0889129d1fc20bd0b8
|
project_id: 656841f5d46e4b0889129d1fc20bd0b8
|
||||||
project_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
project_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
||||||
user_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
user_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
||||||
@ -74,9 +74,9 @@ clouds:
|
|||||||
- RegionOne
|
- RegionOne
|
||||||
auth:
|
auth:
|
||||||
auth_url: https://cn1.linaro.cloud:35357
|
auth_url: https://cn1.linaro.cloud:35357
|
||||||
username: <%= @puppetmaster_clouds['openstackci_linaro_username'] %>
|
username: '{{ clouds.openstackci_linaro_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackci_linaro_password'] %>
|
password: '{{ clouds.openstackci_linaro_password }}'
|
||||||
project_name: <%= @puppetmaster_clouds['openstackci_linaro_project_name'] %>
|
project_name: '{{ clouds.openstackci_linaro_project_name }}'
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
openstackci-limestone:
|
openstackci-limestone:
|
||||||
@ -93,9 +93,9 @@ clouds:
|
|||||||
nat_source: true
|
nat_source: true
|
||||||
auth:
|
auth:
|
||||||
auth_url: https://osa.continuous.pw:5000
|
auth_url: https://osa.continuous.pw:5000
|
||||||
username: <%= @puppetmaster_clouds['openstackci_limestone_username'] %>
|
username: '{{ clouds.openstackci_limestone_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackci_limestone_password'] %>
|
password: '{{ clouds.openstackci_limestone_password }}'
|
||||||
project_name: <%= @puppetmaster_clouds['openstackci_limestone_project_name'] %>
|
project_name: '{{ clouds.openstackci_limestone_project_name }}'
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
identity_api_version: 3
|
identity_api_version: 3
|
||||||
@ -109,9 +109,9 @@ clouds:
|
|||||||
default_interface: True
|
default_interface: True
|
||||||
auth:
|
auth:
|
||||||
auth_url: https://packet.platform9.net/keystone
|
auth_url: https://packet.platform9.net/keystone
|
||||||
username: <%= @puppetmaster_clouds['openstackci_packethost_username'] %>
|
username: '{{ clouds.openstackci_packethost_username }}'
|
||||||
password: <%= @puppetmaster_clouds['openstackci_packethost_password'] %>
|
password: '{{ clouds.openstackci_packethost_password }}'
|
||||||
project_name: <%= @puppetmaster_clouds['openstackci_packethost_project_name'] %>
|
project_name: '{{ clouds.openstackci_packethost_project_name }}'
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
identity_api_version: '3'
|
identity_api_version: '3'
|
@ -12,9 +12,9 @@ clouds:
|
|||||||
- IAD
|
- IAD
|
||||||
api_timeout: 60
|
api_timeout: 60
|
||||||
auth:
|
auth:
|
||||||
username: '<%= @rackspace_username %>'
|
username: '{{ rackspace_username }}'
|
||||||
password: '<%= @rackspace_password %>'
|
password: '{{ rackspace_password }}'
|
||||||
project_id: <%= @rackspace_project %>
|
project_id: '{{ rackspace_project }}'
|
||||||
force_ipv4: true
|
force_ipv4: true
|
||||||
ovh:
|
ovh:
|
||||||
profile: ovh
|
profile: ovh
|
||||||
@ -26,16 +26,16 @@ clouds:
|
|||||||
- GRA1
|
- GRA1
|
||||||
api_timeout: 60
|
api_timeout: 60
|
||||||
auth:
|
auth:
|
||||||
username: '<%= @ovh_username %>'
|
username: '{{ ovh_username }}'
|
||||||
password: '<%= @ovh_password %>'
|
password: '{{ ovh_password }}'
|
||||||
project_name: '<%= @ovh_project %>'
|
project_name: '{{ ovh_project }}'
|
||||||
inap:
|
inap:
|
||||||
profile: internap
|
profile: internap
|
||||||
api_timeout: 60
|
api_timeout: 60
|
||||||
auth:
|
auth:
|
||||||
username: '<%= @internap_username %>'
|
username: '{{ internap_username }}'
|
||||||
password: '<%= @internap_password %>'
|
password: '{{ internap_password }}'
|
||||||
project_name: '<%= @internap_project %>'
|
project_name: '{{ internap_project }}'
|
||||||
regions:
|
regions:
|
||||||
- name: mtl01
|
- name: mtl01
|
||||||
values:
|
values:
|
||||||
@ -50,9 +50,9 @@ clouds:
|
|||||||
api_timeout: 60
|
api_timeout: 60
|
||||||
auth_type: password
|
auth_type: password
|
||||||
auth:
|
auth:
|
||||||
username: '<%= @vexxhost_username %>'
|
username: '{{ vexxhost_username }}'
|
||||||
password: '<%= @vexxhost_password %>'
|
password: '{{ vexxhost_password }}'
|
||||||
project_name: '<%= @vexxhost_project %>'
|
project_name: '{{ vexxhost_project }}'
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
image_format: 'raw'
|
image_format: 'raw'
|
||||||
@ -65,8 +65,8 @@ clouds:
|
|||||||
profile: citycloud
|
profile: citycloud
|
||||||
api_timeout: 60
|
api_timeout: 60
|
||||||
auth:
|
auth:
|
||||||
username: '<%= @citycloud_username %>'
|
username: '{{ citycloud_username }}'
|
||||||
password: '<%= @citycloud_password %>'
|
password: '{{ citycloud_password }}'
|
||||||
project_id: bed89257500340af8d0fbe7141b1bfd6
|
project_id: bed89257500340af8d0fbe7141b1bfd6
|
||||||
project_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
project_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
||||||
user_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
user_domain_id: a5e7d1a8f25b42b081cf89d1130638da
|
||||||
@ -76,9 +76,9 @@ clouds:
|
|||||||
identity_api_version: '3'
|
identity_api_version: '3'
|
||||||
auth:
|
auth:
|
||||||
auth_url: https://cn1.linaro.cloud:35357
|
auth_url: https://cn1.linaro.cloud:35357
|
||||||
username: <%= @linaro_username %>
|
username: '{{ linaro_username }}'
|
||||||
password: <%= @linaro_password %>
|
password: '{{ linaro_password }}'
|
||||||
project_name: <%= @linaro_project %>
|
project_name: '{{ linaro_project }}'
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
limestone:
|
limestone:
|
||||||
@ -92,9 +92,9 @@ clouds:
|
|||||||
nat_destination: true
|
nat_destination: true
|
||||||
auth:
|
auth:
|
||||||
auth_url: https://osa.continuous.pw:5000
|
auth_url: https://osa.continuous.pw:5000
|
||||||
username: <%= @limestone_username %>
|
username: '{{ limestone_username }}'
|
||||||
password: <%= @limestone_password %>
|
password: '{{ limestone_password }}'
|
||||||
project_name: <%= @limestone_project %>
|
project_name: '{{ limestone_project }}'
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
api_timeout: 60
|
api_timeout: 60
|
||||||
@ -110,9 +110,9 @@ clouds:
|
|||||||
default_interface: True
|
default_interface: True
|
||||||
auth:
|
auth:
|
||||||
auth_url: https://packet.platform9.net/keystone
|
auth_url: https://packet.platform9.net/keystone
|
||||||
username: <%= @packethost_username %>
|
username: '{{ packethost_username }}'
|
||||||
password: <%= @packethost_password %>
|
password: '{{ packethost_password }}'
|
||||||
project_name: <%= @packethost_project %>
|
project_name: '{{ packethost_project }}'
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
identity_api_version: '3'
|
identity_api_version: '3'
|
@ -42,6 +42,8 @@
|
|||||||
dest: "/etc/ansible/hosts/{{ item }}"
|
dest: "/etc/ansible/hosts/{{ item }}"
|
||||||
loop:
|
loop:
|
||||||
- group_vars/all.yaml
|
- group_vars/all.yaml
|
||||||
|
- group_vars/nodepool.yaml
|
||||||
|
- host_vars/bridge.openstack.org.yaml
|
||||||
- name: Display group membership
|
- name: Display group membership
|
||||||
command: ansible localhost -m debug -a 'var=groups'
|
command: ansible localhost -m debug -a 'var=groups'
|
||||||
- name: Run base.yaml
|
- name: Run base.yaml
|
||||||
|
24
playbooks/zuul/templates/group_vars/nodepool.yaml.j2
Normal file
24
playbooks/zuul/templates/group_vars/nodepool.yaml.j2
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# Necessary for fake clouds.yaml to be written
|
||||||
|
rackspace_username: user
|
||||||
|
rackspace_password: password
|
||||||
|
rackspace_project: project
|
||||||
|
ovh_username: user
|
||||||
|
ovh_password: password
|
||||||
|
ovh_project: project
|
||||||
|
internap_username: user
|
||||||
|
internap_password: password
|
||||||
|
internap_project: project
|
||||||
|
vexxhost_username: user
|
||||||
|
vexxhost_password: password
|
||||||
|
vexxhost_project: project
|
||||||
|
citycloud_username: user
|
||||||
|
citycloud_password: password
|
||||||
|
linaro_username: user
|
||||||
|
linaro_password: password
|
||||||
|
linaro_project: project
|
||||||
|
limestone_username: user
|
||||||
|
limestone_password: password
|
||||||
|
limestone_project: project
|
||||||
|
packethost_username: user
|
||||||
|
packethost_password: password
|
||||||
|
packethost_project: project
|
@ -0,0 +1,48 @@
|
|||||||
|
# Necessary for fake clouds.yaml to be written
|
||||||
|
clouds:
|
||||||
|
openstackci_internap_username: user
|
||||||
|
openstackci_internap_password: password
|
||||||
|
openstackci_internap_project_name: project
|
||||||
|
openstackjenkins_internap_username: user
|
||||||
|
openstackjenkins_internap_password: password
|
||||||
|
openstackjenkins_internap_project_name: project
|
||||||
|
openstackci_ovh_username: user
|
||||||
|
openstackci_ovh_password: password
|
||||||
|
openstackci_ovh_project_name: project
|
||||||
|
openstackci_rax_username: user
|
||||||
|
openstackci_rax_password: password
|
||||||
|
openstackci_rax_project_id: project
|
||||||
|
openstackjenkins_rax_username: user
|
||||||
|
openstackjenkins_rax_password: password
|
||||||
|
openstackjenkins_rax_project_id: project
|
||||||
|
openstackjenkins_ovh_username: user
|
||||||
|
openstackjenkins_ovh_password: password
|
||||||
|
openstackjenkins_ovh_project_name: project
|
||||||
|
openstackjenkins_vexxhost_username: user
|
||||||
|
openstackjenkins_vexxhost_password: password
|
||||||
|
openstackjenkins_vexxhost_project_name: project
|
||||||
|
openstackci_vexxhost_username: user
|
||||||
|
openstackci_vexxhost_password: password
|
||||||
|
openstackci_vexxhost_project_name: project
|
||||||
|
openstackci_citycloud_username: user
|
||||||
|
openstackci_citycloud_password: password
|
||||||
|
openstackzuul_citycloud_username: user
|
||||||
|
openstackzuul_citycloud_password: password
|
||||||
|
openstackci_linaro_username: user
|
||||||
|
openstackci_linaro_password: password
|
||||||
|
openstackci_linaro_project_name: project
|
||||||
|
openstackzuul_linaro_username: user
|
||||||
|
openstackzuul_linaro_password: password
|
||||||
|
openstackzuul_linaro_project_name: project
|
||||||
|
openstackci_limestone_username: user
|
||||||
|
openstackci_limestone_password: password
|
||||||
|
openstackci_limestone_project_name: project
|
||||||
|
openstackzuul_limestone_username: user
|
||||||
|
openstackzuul_limestone_password: password
|
||||||
|
openstackzuul_limestone_project_name: project
|
||||||
|
openstackci_packethost_username: user
|
||||||
|
openstackci_packethost_password: password
|
||||||
|
openstackci_packethost_project_name: project
|
||||||
|
openstackzuul_packethost_username: user
|
||||||
|
openstackzuul_packethost_password: password
|
||||||
|
openstackzuul_packethost_project_name: project
|
@ -21,9 +21,9 @@ import sys
|
|||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
FILES_TO_CHECK = (
|
FILES_TO_CHECK = (
|
||||||
'modules/openstack_project/templates/nodepool/clouds.yaml.erb',
|
'playbooks/templates/clouds/nodepool_clouds.yaml.j2',
|
||||||
'modules/openstack_project/templates/puppetmaster/all-clouds.yaml.erb',
|
'playbooks/templates/clouds/bridge_all_clouds.yaml.j2',
|
||||||
'modules/openstack_project/templates/puppetmaster/ansible-clouds.yaml.erb'
|
'playbooks/templates/clouds/bridge_clouds.yaml.j2',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ def check_files():
|
|||||||
os.path.basename(file)), 'w')
|
os.path.basename(file)), 'w')
|
||||||
in_file = open(file, 'r')
|
in_file = open(file, 'r')
|
||||||
for line in in_file:
|
for line in in_file:
|
||||||
line = re.sub(r'<%.*%>', 'loremipsum', line)
|
line = re.sub(r'{{.*}}', 'loremipsum', line)
|
||||||
temp.write(line)
|
temp.write(line)
|
||||||
temp.close()
|
temp.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user