Merge "Add OmfraCloud to puppetmaster_clouds"
This commit is contained in:
commit
666ae8ec39
@ -223,10 +223,11 @@ node 'puppetmaster.openstack.org' {
|
|||||||
pin_puppet => '3.6.',
|
pin_puppet => '3.6.',
|
||||||
}
|
}
|
||||||
class { 'openstack_project::puppetmaster':
|
class { 'openstack_project::puppetmaster':
|
||||||
root_rsa_key => hiera('puppetmaster_root_rsa_key'),
|
root_rsa_key => hiera('puppetmaster_root_rsa_key'),
|
||||||
jenkins_api_user => hiera('jenkins_api_user', 'username'),
|
jenkins_api_user => hiera('jenkins_api_user', 'username'),
|
||||||
jenkins_api_key => hiera('jenkins_api_key'),
|
jenkins_api_key => hiera('jenkins_api_key'),
|
||||||
puppetmaster_clouds => hiera('puppetmaster_clouds'),
|
puppetmaster_clouds => hiera('puppetmaster_clouds'),
|
||||||
|
infracloud_hpuswest_ssl_cert_file_contents => hiera('infracloud_hpuswest_ssl_cert_file_contents'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
class openstack_project::puppetmaster (
|
class openstack_project::puppetmaster (
|
||||||
$jenkins_api_key,
|
$jenkins_api_key,
|
||||||
$puppetmaster_clouds,
|
$puppetmaster_clouds,
|
||||||
|
$infracloud_hpuswest_ssl_cert_file_contents,
|
||||||
$jenkins_api_user = 'hudson-openstack',
|
$jenkins_api_user = 'hudson-openstack',
|
||||||
$root_rsa_key = 'xxx',
|
$root_rsa_key = 'xxx',
|
||||||
$puppetdb = true,
|
$puppetdb = true,
|
||||||
@ -127,6 +128,14 @@ class openstack_project::puppetmaster (
|
|||||||
content => template('openstack_project/puppetmaster/ansible-clouds.yaml.erb'),
|
content => template('openstack_project/puppetmaster/ansible-clouds.yaml.erb'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { '/etc/openstack/infracloud_west_cacert.pem':
|
||||||
|
ensure => present,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0600',
|
||||||
|
content => $infracloud_hpuswest_ssl_cert_file_contents,
|
||||||
|
}
|
||||||
|
|
||||||
# For puppet master apache serving.
|
# For puppet master apache serving.
|
||||||
package { 'puppetmaster-passenger':
|
package { 'puppetmaster-passenger':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
@ -77,6 +77,32 @@ clouds:
|
|||||||
username: <%= @puppetmaster_clouds['openstackjenkins_bluebox_username'] %>
|
username: <%= @puppetmaster_clouds['openstackjenkins_bluebox_username'] %>
|
||||||
password: <%= @puppetmaster_clouds['openstackjenkins_bluebox_password'] %>
|
password: <%= @puppetmaster_clouds['openstackjenkins_bluebox_password'] %>
|
||||||
project_name: <%= @puppetmaster_clouds['openstackjenkins_bluebox_project_name'] %>
|
project_name: <%= @puppetmaster_clouds['openstackjenkins_bluebox_project_name'] %>
|
||||||
|
openstackjenkins-infracloud-west:
|
||||||
|
region_name: RegionOne
|
||||||
|
auth:
|
||||||
|
auth_url: https://controller00.hpuswest.ic.openstack.org:35357/v3
|
||||||
|
username: <%= @puppetmaster_clouds['openstackjenkins_infracloud_username'] %>
|
||||||
|
password: <%= @puppetmaster_clouds['openstackjenkins_infracloud_password'] %>
|
||||||
|
project_name: <%= @puppetmaster_clouds['openstackjenkins_infracloud_project_name'] %>
|
||||||
|
cacert: '/etc/openstack/infracloud_west_cacert.pem'
|
||||||
|
auth_type: 'v3password'
|
||||||
|
identity_api_version: '3'
|
||||||
|
floating_ip_source: 'None'
|
||||||
|
project_domain_id: default
|
||||||
|
user_domain_id: default
|
||||||
|
openstackci-infracloud-west:
|
||||||
|
region_name: RegionOne
|
||||||
|
auth:
|
||||||
|
auth_url: https://controller00.hpuswest.ic.openstack.org:35357/v3
|
||||||
|
username: <%= @puppetmaster_clouds['openstackci_infracloud_username'] %>
|
||||||
|
password: <%= @puppetmaster_clouds['openstackci_infracloud_password'] %>
|
||||||
|
project_name: <%= @puppetmaster_clouds['openstackci_infracloud_project_name'] %>
|
||||||
|
cacert: '/etc/openstack/infracloud_west_cacert.pem'
|
||||||
|
auth_type: 'v3password'
|
||||||
|
identity_api_version: '3'
|
||||||
|
floating_ip_source: 'None'
|
||||||
|
project_domain_id: default
|
||||||
|
user_domain_id: default
|
||||||
openstackjenkins-rax:
|
openstackjenkins-rax:
|
||||||
regions:
|
regions:
|
||||||
- DFW
|
- DFW
|
||||||
|
@ -38,3 +38,12 @@ clouds:
|
|||||||
username: <%= @puppetmaster_clouds['openstackci_rax_username'] %>
|
username: <%= @puppetmaster_clouds['openstackci_rax_username'] %>
|
||||||
password: <%= @puppetmaster_clouds['openstackci_rax_password'] %>
|
password: <%= @puppetmaster_clouds['openstackci_rax_password'] %>
|
||||||
project_id: <%= @puppetmaster_clouds['openstackci_rax_project_id'] %>
|
project_id: <%= @puppetmaster_clouds['openstackci_rax_project_id'] %>
|
||||||
|
openstackci-infracloud-west:
|
||||||
|
region_name: RegionOne
|
||||||
|
auth:
|
||||||
|
auth_url: https://controller00.hpuswest.ic.openstack.org:35357/v3
|
||||||
|
username: <%= @puppetmaster_clouds['openstackci_infracloud_username'] %>
|
||||||
|
password: <%= @puppetmaster_clouds['openstackci_infracloud_password'] %>
|
||||||
|
project_name: <%= @puppetmaster_clouds['openstackci_infracloud_project_name'] %>
|
||||||
|
project_domain_id: default
|
||||||
|
user_domain_id: default
|
||||||
|
Loading…
x
Reference in New Issue
Block a user