Fix inputs in resources

This commit is contained in:
Dmitry Shulyak 2015-11-12 14:08:46 +02:00
parent 3306bf83ed
commit cf5b0edafa
129 changed files with 549 additions and 164 deletions

View File

@ -1,7 +1,10 @@
id: apache id: apache
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
apache_ports: apache_ports:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: api-proxy id: api-proxy
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
apache_ports: apache_ports:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: ceilometer-compute id: ceilometer-compute
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: ceilometer-controller id: ceilometer-controller
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
ceilometer: ceilometer:
value: null value: null
debug: debug:

View File

@ -1,7 +1,10 @@
id: ceilometer-keystone id: ceilometer-keystone
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
ceilometer: ceilometer:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: ceilometer-radosgw-user id: ceilometer-radosgw-user
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
ceilometer: ceilometer:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: ceph-compute id: ceph-compute
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: ceph-mon id: ceph-mon
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
ceph_monitor_nodes: ceph_monitor_nodes:
value: null value: null
ceph_primary_monitor_node: ceph_primary_monitor_node:

View File

@ -1,7 +1,10 @@
id: ceph-radosgw id: ceph-radosgw
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
ceph_monitor_nodes: ceph_monitor_nodes:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: ceph_create_pools id: ceph_create_pools
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: cinder-db id: cinder-db
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
cinder: cinder:
value: null value: null
database_vip: database_vip:

View File

@ -1,7 +1,10 @@
id: cinder-keystone id: cinder-keystone
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
cinder: cinder:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: cluster-haproxy id: cluster-haproxy
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
database_vip: database_vip:
value: null value: null
debug: debug:

View File

@ -1,7 +1,10 @@
id: cluster-vrouter id: cluster-vrouter
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
network_scheme: network_scheme:

View File

@ -1,7 +1,10 @@
id: cluster id: cluster
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
corosync_roles: corosync_roles:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: cluster_health id: cluster_health
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
corosync_disk_monitor: corosync_disk_monitor:
value: null value: null
corosync_disk_monitor_interval: corosync_disk_monitor_interval:

View File

@ -1,7 +1,10 @@
id: configure_default_route id: configure_default_route
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: connectivity_tests id: connectivity_tests
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: conntrackd id: conntrackd
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
network_scheme: network_scheme:

View File

@ -1,7 +1,10 @@
id: controller_remaining_tasks id: controller_remaining_tasks
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
neutron_mellanox: neutron_mellanox:

View File

@ -1,7 +1,10 @@
id: database id: database
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
database_nodes: database_nodes:
value: null value: null
database_vip: database_vip:

View File

@ -1,7 +1,10 @@
id: disable_keystone_service_token id: disable_keystone_service_token
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
keystone_hash: keystone_hash:

View File

@ -1,7 +1,10 @@
id: dns-client id: dns-client
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
management_vrouter_vip: management_vrouter_vip:

View File

@ -1,7 +1,10 @@
id: dns-server id: dns-server
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
external_dns: external_dns:
value: null value: null
fqdn: fqdn:

View File

@ -1,6 +1,7 @@
notice('MODULAR: dump_rabbitmq_definitions.pp') notice('MODULAR: dump_rabbitmq_definitions.pp')
$definitions_dump_file = '/etc/rabbitmq/definitions' $definitions_dump_file = '/etc/rabbitmq/definitions'
$original_definitions_dump_file = '/etc/rabbitmq/definitions.full'
$rabbit_hash = hiera_hash('rabbit_hash', $rabbit_hash = hiera_hash('rabbit_hash',
{ {
'user' => false, 'user' => false,
@ -16,10 +17,14 @@ if ($rabbit_enabled) {
exec { 'rabbitmq-dump-definitions': exec { 'rabbitmq-dump-definitions':
path => ['/usr/bin', '/usr/sbin', '/sbin', '/bin'], path => ['/usr/bin', '/usr/sbin', '/sbin', '/bin'],
command => "curl -u ${rabbit_credentials} ${rabbit_api_endpoint} -o ${definitions_dump_file}", command => "curl -u ${rabbit_credentials} ${rabbit_api_endpoint} -o ${original_definitions_dump_file}",
}->
exec { 'rabbitmq-dump-clean':
path => ['/usr/bin', '/usr/sbin', '/sbin', '/bin'],
command => "rabbitmq-dump-clean.py < ${original_definitions_dump_file} > ${definitions_dump_file}",
} }
file { $definitions_dump_file: file { [$definitions_dump_file, $original_definitions_dump_file]:
ensure => file, ensure => file,
owner => 'root', owner => 'root',
group => 'root', group => 'root',

View File

@ -1,7 +1,10 @@
id: dump_rabbitmq_definitions id: dump_rabbitmq_definitions
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: enable_cinder_volume_service id: enable_cinder_volume_service
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: enable_nova_compute_service id: enable_nova_compute_service
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: enable_rados id: enable_rados
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -50,6 +50,7 @@ class { 'openstack::firewall' :
nova_api_ip_range => get_network_role_property('nova/api', 'network'), nova_api_ip_range => get_network_role_property('nova/api', 'network'),
libvirt_network => get_network_role_property('management', 'network'), libvirt_network => get_network_role_property('management', 'network'),
keystone_network => get_network_role_property('keystone/api', 'network'), keystone_network => get_network_role_property('keystone/api', 'network'),
iscsi_ip => get_network_role_property('cinder/iscsi', 'ipaddr'),
} }
if $ironic_hash['enabled'] { if $ironic_hash['enabled'] {

View File

@ -1,7 +1,10 @@
id: firewall id: firewall
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
ironic: ironic:

View File

@ -1,7 +1,10 @@
id: fuel_pkgs id: fuel_pkgs
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: generate_vms id: generate_vms
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,7 @@
id: genkeys id: genkeys
handler: shell handler: shell
version: 0.0.1 version: 0.0.1
inputs: input:
uid: uid:
schema: str! schema: str!
value: value:

View File

@ -1,7 +1,10 @@
id: glance-db id: glance-db
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
database_vip: database_vip:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: glance-keystone id: glance-keystone
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
glance: glance:

View File

@ -1,7 +1,10 @@
id: glance id: glance
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
amqp_hosts: amqp_hosts:
value: null value: null
ceilometer: ceilometer:

View File

@ -1,7 +1,10 @@
id: globals id: globals
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
access: access:
value: null value: null
amqp_hosts: amqp_hosts:

View File

@ -1,7 +1,10 @@
id: heat-db id: heat-db
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
database_vip: database_vip:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: heat-keystone id: heat-keystone
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
heat: heat:

View File

@ -1,7 +1,10 @@
id: heat id: heat
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
amqp_hosts: amqp_hosts:
value: null value: null
database_vip: database_vip:

View File

@ -1,7 +1,10 @@
id: hiera id: hiera
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: horizon id: horizon
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
apache_ports: apache_ports:
value: null value: null
debug: debug:

View File

@ -1,7 +1,10 @@
id: hosts id: hosts
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
nodes: nodes:

View File

@ -1,7 +1,10 @@
id: ironic-api id: ironic-api
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
ironic: ironic:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: ironic-compute id: ironic-compute
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: ironic-conductor id: ironic-conductor
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: ironic-db id: ironic-db
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
database_vip: database_vip:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: ironic-keystone id: ironic-keystone
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
ironic: ironic:

View File

@ -1,7 +1,10 @@
id: keystone-db id: keystone-db
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
database_vip: database_vip:
value: null value: null
fqdn: fqdn:

View File

@ -234,3 +234,9 @@ if ($::operatingsystem == 'Ubuntu') {
package_name => 'keystone', package_name => 'keystone',
} }
} }
# Override confguration options
$override_configuration = hiera_hash('configuration', {})
override_resources { 'keystone_config':
data => $override_configuration['keystone_config']
}

View File

@ -1,7 +1,10 @@
id: keystone id: keystone
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
access: access:
value: null value: null
amqp_hosts: amqp_hosts:

View File

@ -1,7 +1,10 @@
id: logging id: logging
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
base_syslog_hash: base_syslog_hash:
value: null value: null
debug: debug:

View File

@ -1,7 +1,10 @@
id: memcached id: memcached
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
network_scheme: network_scheme:

View File

@ -1,7 +1,10 @@
id: murano-db id: murano-db
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
database_vip: database_vip:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: murano-keystone id: murano-keystone
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
management_vip: management_vip:

View File

@ -0,0 +1,13 @@
notice('MODULAR: murano/rabbitmq.pp')
$rabbit_hash = hiera_hash('rabbit_hash', {})
#################################################################
rabbitmq_vhost { '/murano': }
rabbitmq_user_permissions { "${rabbit_hash['user']}@/murano":
configure_permission => '.*',
read_permission => '.*',
write_permission => '.*',
}

View File

@ -0,0 +1,7 @@
id: murano-rabbitmq
handler: puppetv2
version: '8.0'
actions:
run: actions/run.pp
update: actions/run.pp
input: {}

View File

@ -5,7 +5,6 @@ prepare_network_config(hiera('network_scheme', {}))
$murano_hash = hiera_hash('murano_hash', {}) $murano_hash = hiera_hash('murano_hash', {})
$murano_settings_hash = hiera_hash('murano_settings', {}) $murano_settings_hash = hiera_hash('murano_settings', {})
$rabbit_hash = hiera_hash('rabbit_hash', {}) $rabbit_hash = hiera_hash('rabbit_hash', {})
$heat_hash = hiera_hash('heat_hash', {})
$neutron_config = hiera_hash('neutron_config', {}) $neutron_config = hiera_hash('neutron_config', {})
$node_role = hiera('node_role') $node_role = hiera('node_role')
$public_ip = hiera('public_vip') $public_ip = hiera('public_vip')
@ -80,24 +79,26 @@ if $murano_hash['enabled'] {
use_stderr => $use_stderr, use_stderr => $use_stderr,
log_facility => $syslog_log_facility_murano, log_facility => $syslog_log_facility_murano,
database_connection => $sql_connection, database_connection => $sql_connection,
keystone_uri => "${public_protocol}://${public_address}:5000/v2.0/", auth_uri => "${public_protocol}://${public_address}:5000/v2.0/",
keystone_username => $murano_user, admin_user => $murano_user,
keystone_password => $murano_hash['user_password'], admin_password => $murano_hash['user_password'],
keystone_tenant => $tenant, admin_tenant_name => $tenant,
identity_uri => "http://${service_endpoint}:35357/", identity_uri => "http://${service_endpoint}:35357/",
use_neutron => $use_neutron, use_neutron => $use_neutron,
rabbit_os_user => $rabbit_hash['user'], rabbit_os_user => $rabbit_hash['user'],
rabbit_os_password => $rabbit_hash['password'], rabbit_os_password => $rabbit_hash['password'],
rabbit_os_port => $amqp_port, rabbit_os_port => $amqp_port,
rabbit_os_hosts => split($amqp_hosts, ','), rabbit_os_host => split($amqp_hosts, ','),
rabbit_ha_queues => $rabbit_ha_queues, rabbit_ha_queues => $rabbit_ha_queues,
rabbit_own_host => $public_ip, rabbit_own_host => $public_ip,
rabbit_own_port => '55572', rabbit_own_port => $amqp_port,
rabbit_own_user => 'murano', rabbit_own_vhost => 'murano',
rabbit_own_password => $heat_hash['rabbit_password'], rabbit_own_user => $rabbit_hash['user'],
rabbit_own_password => $rabbit_hash['password'],
service_host => $api_bind_host, service_host => $api_bind_host,
service_port => $api_bind_port, service_port => $api_bind_port,
external_network => $external_network, external_network => $external_network,
use_trusts => true,
} }
class { 'murano::api': class { 'murano::api':
@ -114,12 +115,6 @@ if $murano_hash['enabled'] {
repo_url => $repository_url, repo_url => $repository_url,
} }
class { 'murano::rabbitmq':
rabbit_user => 'murano',
rabbit_password => $heat_hash['rabbit_password'],
rabbit_port => '55572',
}
$haproxy_stats_url = "http://${management_ip}:10000/;csv" $haproxy_stats_url = "http://${management_ip}:10000/;csv"
haproxy_backend_status { 'murano-api' : haproxy_backend_status { 'murano-api' :
@ -138,20 +133,13 @@ if $murano_hash['enabled'] {
url => $haproxy_stats_url, url => $haproxy_stats_url,
} }
murano::application { 'io.murano' : murano::application { 'io.murano' : }
os_tenant_name => $tenant,
os_username => $murano_user,
os_password => $murano_hash['user_password'],
os_auth_url => "${public_protocol}://${public_address}:5000/v2.0/",
os_region => $region,
mandatory => true,
}
Haproxy_backend_status['keystone-admin'] -> Haproxy_backend_status['murano-api'] Haproxy_backend_status['keystone-admin'] -> Haproxy_backend_status['murano-api']
Haproxy_backend_status['keystone-public'] -> Haproxy_backend_status['murano-api'] Haproxy_backend_status['keystone-public'] -> Haproxy_backend_status['murano-api']
Haproxy_backend_status['murano-api'] -> Murano::Application['io.murano'] Haproxy_backend_status['murano-api'] -> Murano::Application['io.murano']
Service['murano-api'] -> Murano::Application<| mandatory == true |> Service['murano-api'] -> Murano::Application['io.murano']
} }
Firewall[$firewall_rule] -> Class['murano::api'] Firewall[$firewall_rule] -> Class['murano::api']

View File

@ -1,7 +1,10 @@
id: murano id: murano
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
amqp_hosts: amqp_hosts:
value: null value: null
amqp_port: amqp_port:

View File

@ -1,7 +1,10 @@
id: netconfig id: netconfig
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
default_gateway: default_gateway:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: neutron-db id: neutron-db
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
database_vip: database_vip:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: neutron-keystone id: neutron-keystone
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
management_vip: management_vip:

View File

@ -1,7 +1,10 @@
id: nova-db id: nova-db
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
database_vip: database_vip:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: nova-keystone id: nova-keystone
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
management_vip: management_vip:

View File

@ -1,7 +1,10 @@
id: ntp-check id: ntp-check
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
external_ntp: external_ntp:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: ntp-client id: ntp-client
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: ntp-server id: ntp-server
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
external_ntp: external_ntp:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: openstack-cinder id: openstack-cinder
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
amqp_hosts: amqp_hosts:
value: null value: null
ceilometer_hash: ceilometer_hash:

View File

@ -1,7 +1,10 @@
id: openstack-controller id: openstack-controller
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
access: access:
value: null value: null
amqp_hosts: amqp_hosts:

View File

@ -1,7 +1,10 @@
id: openstack-haproxy-ceilometer id: openstack-haproxy-ceilometer
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
ceilometer: ceilometer:
value: null value: null
ceilometer_nodes: ceilometer_nodes:

View File

@ -1,7 +1,10 @@
id: openstack-haproxy-cinder id: openstack-haproxy-cinder
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
cinder_hash: cinder_hash:
value: null value: null
cinder_ipaddresses: cinder_ipaddresses:

View File

@ -1,7 +1,10 @@
id: openstack-haproxy-glance id: openstack-haproxy-glance
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
glance: glance:

View File

@ -1,7 +1,10 @@
id: openstack-haproxy-heat id: openstack-haproxy-heat
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
heat: heat:

View File

@ -1,7 +1,10 @@
id: openstack-haproxy-horizon id: openstack-haproxy-horizon
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
horizon: horizon:

View File

@ -1,7 +1,10 @@
id: openstack-haproxy-ironic id: openstack-haproxy-ironic
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
ironic: ironic:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: openstack-haproxy-keystone id: openstack-haproxy-keystone
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
keystone: keystone:

View File

@ -1,7 +1,10 @@
id: openstack-haproxy-murano id: openstack-haproxy-murano
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
murano_hash: murano_hash:

View File

@ -1,7 +1,10 @@
id: openstack-haproxy-mysqld id: openstack-haproxy-mysqld
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
custom_mysql_setup_class: custom_mysql_setup_class:
value: null value: null
database_nodes: database_nodes:

View File

@ -1,7 +1,10 @@
id: openstack-haproxy-neutron id: openstack-haproxy-neutron
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
management_vip: management_vip:

View File

@ -1,7 +1,10 @@
id: openstack-haproxy-nova id: openstack-haproxy-nova
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
management_vip: management_vip:

View File

@ -3,7 +3,7 @@ notice('MODULAR: openstack-haproxy-radosgw.pp')
$network_metadata = hiera_hash('network_metadata') $network_metadata = hiera_hash('network_metadata')
$storage_hash = hiera_hash('storage', {}) $storage_hash = hiera_hash('storage', {})
$public_ssl_hash = hiera('public_ssl') $public_ssl_hash = hiera('public_ssl')
$ironic_hash = hiera_hash('ironic', {})
if !($storage_hash['images_ceph'] and $storage_hash['objects_ceph']) and !$storage_hash['images_vcenter'] { if !($storage_hash['images_ceph'] and $storage_hash['objects_ceph']) and !$storage_hash['images_vcenter'] {
$use_swift = true $use_swift = true
@ -23,12 +23,17 @@ if $use_radosgw {
$public_virtual_ip = hiera('public_vip') $public_virtual_ip = hiera('public_vip')
$internal_virtual_ip = hiera('management_vip') $internal_virtual_ip = hiera('management_vip')
if $ironic_hash['enabled'] {
$baremetal_virtual_ip = $network_metadata['vips']['baremetal']['ipaddr']
}
# configure radosgw ha proxy # configure radosgw ha proxy
class { '::openstack::ha::radosgw': class { '::openstack::ha::radosgw':
internal_virtual_ip => $internal_virtual_ip, internal_virtual_ip => $internal_virtual_ip,
ipaddresses => $ipaddresses, ipaddresses => $ipaddresses,
public_virtual_ip => $public_virtual_ip, public_virtual_ip => $public_virtual_ip,
server_names => $server_names, server_names => $server_names,
public_ssl => $public_ssl_hash['services'], public_ssl => $public_ssl_hash['services'],
baremetal_virtual_ip => $baremetal_virtual_ip,
} }
} }

View File

@ -1,7 +1,10 @@
id: openstack-haproxy-radosgw id: openstack-haproxy-radosgw
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
network_metadata: network_metadata:

View File

@ -1,7 +1,10 @@
id: openstack-haproxy-sahara id: openstack-haproxy-sahara
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
network_metadata: network_metadata:

View File

@ -1,7 +1,10 @@
id: openstack-haproxy-stats id: openstack-haproxy-stats
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
database_vip: database_vip:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: openstack-haproxy-swift id: openstack-haproxy-swift
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
ironic: ironic:

View File

@ -1,7 +1,10 @@
id: openstack-haproxy id: openstack-haproxy
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -30,7 +30,7 @@ if $use_neutron {
} }
} }
#======================== # stub package for 'neutron::agents::dhcp' class
package { 'neutron': package { 'neutron':
name => 'binutils', name => 'binutils',
ensure => 'installed', ensure => 'installed',

View File

@ -1,7 +1,10 @@
id: openstack-network-agents-dhcp id: openstack-network-agents-dhcp
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
debug: debug:
value: null value: null
fqdn: fqdn:

View File

@ -50,7 +50,7 @@ if $use_neutron and ($controller or ($dvr and $compute)) {
} }
} }
#======================== # stub package for 'neutron::agents::l3' class
package { 'neutron': package { 'neutron':
name => 'binutils', name => 'binutils',
ensure => 'installed', ensure => 'installed',

View File

@ -1,7 +1,10 @@
id: openstack-network-agents-l3 id: openstack-network-agents-l3
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
debug: debug:
value: null value: null
fqdn: fqdn:

View File

@ -38,7 +38,6 @@ if $use_neutron {
metadata_ip => $nova_endpoint, metadata_ip => $nova_endpoint,
manage_service => true, manage_service => true,
enabled => true, enabled => true,
} }
if $ha_agent { if $ha_agent {
@ -48,7 +47,7 @@ if $use_neutron {
} }
} }
#======================== # stub package for 'neutron::agents::metadata' class
package { 'neutron': package { 'neutron':
name => 'binutils', name => 'binutils',
ensure => 'installed', ensure => 'installed',

View File

@ -1,7 +1,10 @@
id: openstack-network-agents-metadata id: openstack-network-agents-metadata
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
debug: debug:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: openstack-network-common-config id: openstack-network-common-config
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
amqp_hosts: amqp_hosts:
value: null value: null
ceilometer: ceilometer:

View File

@ -1,7 +1,10 @@
id: openstack-network-compute-nova id: openstack-network-compute-nova
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
puppet_modules: puppet_modules:

View File

@ -1,7 +1,10 @@
id: openstack-network-networks id: openstack-network-networks
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
access: access:
value: null value: null
fqdn: fqdn:

View File

@ -48,16 +48,15 @@ if $use_neutron {
$physnet_ironic_bridge = try_get_value($neutron_config, 'L2/phys_nets/physnet-ironic/bridge', false) $physnet_ironic_bridge = try_get_value($neutron_config, 'L2/phys_nets/physnet-ironic/bridge', false)
if $physnet_ironic_bridge { if $physnet_ironic_bridge {
$physnet_ironic = "physnet-ironic:${physnet_ironic_bridge}" $bridge_mappings = [$physnet2, "physnet-ironic:${physnet_ironic_bridge}"]
}else { } else {
$physnet_ironic = [] $bridge_mappings = [$physnet2]
} }
$physnets_array = [$physnet2, $physnet_ironic]
$bridge_mappings = delete_undef_values($physnets_array)
$physical_network_mtus = ["physnet2:${physical_net_mtu}"] $physical_network_mtus = ["physnet2:${physical_net_mtu}"]
$tunnel_id_ranges = [] $tunnel_id_ranges = []
$network_type = 'vlan' $network_type = 'vlan'
$tunnel_types = []
} else { } else {
$net_role_property = 'neutron/mesh' $net_role_property = 'neutron/mesh'
$tunneling_ip = get_network_role_property($net_role_property, 'ipaddr') $tunneling_ip = get_network_role_property($net_role_property, 'ipaddr')
@ -75,6 +74,7 @@ if $use_neutron {
$mtu_offset = '50' $mtu_offset = '50'
$network_type = 'vxlan' $network_type = 'vxlan'
} }
$tunnel_types = [$network_type]
if $physical_net_mtu { if $physical_net_mtu {
$overlay_net_mtu = $physical_net_mtu - $mtu_offset $overlay_net_mtu = $physical_net_mtu - $mtu_offset
@ -83,7 +83,6 @@ if $use_neutron {
} }
$enable_tunneling = true $enable_tunneling = true
$tunnel_types = [$network_type]
} }
$type_drivers = ['local', 'flat', 'vlan', 'gre', 'vxlan'] $type_drivers = ['local', 'flat', 'vlan', 'gre', 'vxlan']

View File

@ -1,7 +1,10 @@
id: openstack-network-plugins-l2 id: openstack-network-plugins-l2
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
fqdn: fqdn:
value: null value: null
management_vip: management_vip:

View File

@ -1,7 +1,10 @@
id: openstack-network-routers id: openstack-network-routers
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
access: access:
value: null value: null
fqdn: fqdn:

View File

@ -1,7 +1,10 @@
id: openstack-network-server-config id: openstack-network-server-config
handler: puppetv2 handler: puppetv2
version: '8.0' version: '8.0'
inputs: actions:
run: actions/run.pp
update: actions/run.pp
input:
database_vip: database_vip:
value: null value: null
fqdn: fqdn:

Some files were not shown because too many files have changed in this diff Show More