Changed {{ }} to #{ }# in VR templates
Change-Id: I5d280474c060a8316f2e161e9d4a372a3767da15
This commit is contained in:
parent
c7d8197f89
commit
560ff18482
@ -7,16 +7,16 @@ resources:
|
|||||||
port: 3306
|
port: 3306
|
||||||
root_password: mariadb
|
root_password: mariadb
|
||||||
image: mariadb
|
image: mariadb
|
||||||
ip: '{{ip}}'
|
ip: '#{ip}#'
|
||||||
ssh_user: '{{ssh_user}}'
|
ssh_user: '#{ssh_user}#'
|
||||||
ssh_key: '{{ssh_key}}'
|
ssh_key: '#{ssh_key}#'
|
||||||
|
|
||||||
- id: rabbitmq_service
|
- id: rabbitmq_service
|
||||||
from: resources/rabbitmq_service
|
from: resources/rabbitmq_service
|
||||||
values:
|
values:
|
||||||
ip: '{{ip}}'
|
ip: '#{ip}#'
|
||||||
ssh_user: '{{ssh_user}}'
|
ssh_user: '#{ssh_user}#'
|
||||||
ssh_key: '{{ssh_key}}'
|
ssh_key: '#{ssh_key}#'
|
||||||
|
|
||||||
- id: keystone_base
|
- id: keystone_base
|
||||||
from: templates/keystone_base.yaml
|
from: templates/keystone_base.yaml
|
||||||
@ -28,9 +28,9 @@ resources:
|
|||||||
db_host: 'mariadb_service::ip'
|
db_host: 'mariadb_service::ip'
|
||||||
user_password: 'keystone'
|
user_password: 'keystone'
|
||||||
user_name: 'keystone'
|
user_name: 'keystone'
|
||||||
ip: '{{ip}}'
|
ip: '#{ip}#'
|
||||||
ssh_user: '{{ssh_user}}'
|
ssh_user: '#{ssh_user}#'
|
||||||
ssh_key: '{{ssh_key}}'
|
ssh_key: '#{ssh_key}#'
|
||||||
|
|
||||||
- id: keystone_api_1
|
- id: keystone_api_1
|
||||||
from: templates/keystone_api.yaml
|
from: templates/keystone_api.yaml
|
||||||
@ -44,16 +44,16 @@ resources:
|
|||||||
admin_token: 132fdsfwqee
|
admin_token: 132fdsfwqee
|
||||||
admin_port: 35357
|
admin_port: 35357
|
||||||
port: 5000
|
port: 5000
|
||||||
ip: '{{ip}}'
|
ip: '#{ip}#'
|
||||||
ssh_user: '{{ssh_user}}'
|
ssh_user: '#{ssh_user}#'
|
||||||
ssh_key: '{{ssh_key}}'
|
ssh_key: '#{ssh_key}#'
|
||||||
|
|
||||||
- id: openstack_base
|
- id: openstack_base
|
||||||
from: templates/openstack_base.yaml
|
from: templates/openstack_base.yaml
|
||||||
values:
|
values:
|
||||||
ip: '{{ip}}'
|
ip: '#{ip}#'
|
||||||
ssh_user: '{{ssh_user}}'
|
ssh_user: '#{ssh_user}#'
|
||||||
ssh_key: '{{ssh_key}}'
|
ssh_key: '#{ssh_key}#'
|
||||||
keystone_ip: 'keystone_service_1::ip'
|
keystone_ip: 'keystone_service_1::ip'
|
||||||
keystone_admin_port: 'keystone_service_1::admin_port'
|
keystone_admin_port: 'keystone_service_1::admin_port'
|
||||||
keystone_port: 'keystone_service_1::port'
|
keystone_port: 'keystone_service_1::port'
|
||||||
@ -68,9 +68,9 @@ resources:
|
|||||||
user_name: 'admin_user::user_name'
|
user_name: 'admin_user::user_name'
|
||||||
password: 'admin_user::user_password'
|
password: 'admin_user::user_password'
|
||||||
|
|
||||||
ip: '{{ip}}'
|
ip: '#{ip}#'
|
||||||
ssh_key: '{{ssh_key}}'
|
ssh_key: '#{ssh_key}#'
|
||||||
ssh_user: '{{ssh_user}}'
|
ssh_user: '#{ssh_user}#'
|
||||||
|
|
||||||
tags: ['resources/controller', 'resource/primary_controller']
|
tags: ['resources/controller', 'resource/primary_controller']
|
||||||
|
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
id: glance_{{idx}}
|
id: glance_#{idx}#
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- id: glance_base_{{ idx }}
|
- id: glance_base_#{ idx }#
|
||||||
from: templates/glance_db.yaml
|
from: templates/glance_db.yaml
|
||||||
values:
|
values:
|
||||||
idx: '{{ idx }}'
|
idx: '#{ idx }#'
|
||||||
|
|
||||||
db_name: '{{ db_name }}'
|
db_name: '#{ db_name }#'
|
||||||
db_user: '{{ db_user }}'
|
db_user: '#{ db_user }#'
|
||||||
db_password: '{{ db_password }}'
|
db_password: '#{ db_password }#'
|
||||||
db_host: '{{ db_host }}'
|
db_host: '#{ db_host }#'
|
||||||
db_login_port: '{{ db_port }}'
|
db_login_port: '#{ db_port }#'
|
||||||
db_login_user: '{{ db_login_user }}'
|
db_login_user: '#{ db_login_user }#'
|
||||||
db_login_password: '{{ db_login_password }}'
|
db_login_password: '#{ db_login_password }#'
|
||||||
|
|
||||||
ip: '{{ ip }}'
|
ip: '#{ ip }#'
|
||||||
ssh_user: '{{ ssh_user }}'
|
ssh_user: '#{ ssh_user }#'
|
||||||
ssh_key: '{{ ssh_key }}'
|
ssh_key: '#{ ssh_key }#'
|
||||||
|
|
||||||
|
|
||||||
tags: ['resources/glance', 'resource/glance_api', 'resource/glance_registry']
|
tags: ['resources/glance', 'resource/glance_api', 'resource/glance_registry']
|
||||||
|
@ -4,19 +4,19 @@ resources:
|
|||||||
- id: glance_db
|
- id: glance_db
|
||||||
from: resources/mariadb_db
|
from: resources/mariadb_db
|
||||||
values:
|
values:
|
||||||
db_name: {{db_name}}
|
db_name: #{db_name}#
|
||||||
login_user: '{{login_user}}'
|
login_user: '#{login_user}#'
|
||||||
login_password: '{{login_password}}'
|
login_password: '#{login_password}#'
|
||||||
login_port: '{{login_port}}'
|
login_port: '#{login_port}#'
|
||||||
ip: '{{ip}}'
|
ip: '#{ip}#'
|
||||||
ssh_user: '{{ssh_user}}'
|
ssh_user: '#{ssh_user}#'
|
||||||
ssh_key: '{{ssh_key}}'
|
ssh_key: '#{ssh_key}#'
|
||||||
|
|
||||||
- id: glance_db_user
|
- id: glance_db_user
|
||||||
from: resources/mariadb_user
|
from: resources/mariadb_user
|
||||||
values:
|
values:
|
||||||
user_password: '{{user_password}}'
|
user_password: '#{user_password}#'
|
||||||
user_name: '{{user_name}}'
|
user_name: '#{user_name}#'
|
||||||
db_name: 'keystone_db::db_name'
|
db_name: 'keystone_db::db_name'
|
||||||
login_user: 'keystone_db::login_user'
|
login_user: 'keystone_db::login_user'
|
||||||
login_password: 'keystone_db::login_password'
|
login_password: 'keystone_db::login_password'
|
||||||
|
@ -1,30 +1,30 @@
|
|||||||
id: glance_db_{{ idx }}
|
id: glance_db_#{ idx }#
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- id: glance_db_db_{{ idx }}
|
- id: glance_db_db_#{ idx }#
|
||||||
from: resources/mariadb_db
|
from: resources/mariadb_db
|
||||||
values:
|
values:
|
||||||
db_name: '{{ db_name }}'
|
db_name: '#{ db_name }#'
|
||||||
login_user: '{{ db_login_user }}'
|
login_user: '#{ db_login_user }#'
|
||||||
login_password: '{{ db_login_password }}'
|
login_password: '#{ db_login_password }#'
|
||||||
login_port: '{{ db_login_port }}'
|
login_port: '#{ db_login_port }#'
|
||||||
|
|
||||||
ip: '{{ ip }}'
|
ip: '#{ ip }#'
|
||||||
ssh_user: '{{ ssh_user }}'
|
ssh_user: '#{ ssh_user }#'
|
||||||
ssh_key: '{{ ssh_key }}'
|
ssh_key: '#{ ssh_key }#'
|
||||||
|
|
||||||
- id: glance_db_user
|
- id: glance_db_user
|
||||||
from: resources/mariadb_user
|
from: resources/mariadb_user
|
||||||
values:
|
values:
|
||||||
user_password: '{{ db_password }}'
|
user_password: '#{ db_password }#'
|
||||||
user_name: '{{ db_user }}'
|
user_name: '#{ db_user }#'
|
||||||
|
|
||||||
db_name: '{{ db_name }}'
|
db_name: '#{ db_name }#'
|
||||||
|
|
||||||
login_user: '{{ db_login_user }}'
|
login_user: '#{ db_login_user }#'
|
||||||
login_password: '{{ db_login_password }}'
|
login_password: '#{ db_login_password }#'
|
||||||
login_port: '{{ db_login_port }}'
|
login_port: '#{ db_login_port }#'
|
||||||
|
|
||||||
ip: '{{ ip }}'
|
ip: '#{ ip }#'
|
||||||
ssh_user: '{{ ssh_user }}'
|
ssh_user: '#{ ssh_user }#'
|
||||||
ssh_key: '{{ ssh_key }}'
|
ssh_key: '#{ ssh_key }#'
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
id: glance_register_{{idx}}
|
id: glance_register_#{idx}#
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- id: glance_config_{{idx}}
|
- id: glance_config_#{idx}#
|
||||||
from: resources/glance_config
|
from: resources/glance_config
|
||||||
values:
|
values:
|
||||||
keystone_admin_port: '{{keystone_admin_port}}'
|
keystone_admin_port: '#{keystone_admin_port}#'
|
||||||
keystone_ip: '{{keystone_ip}}'
|
keystone_ip: '#{keystone_ip}#'
|
||||||
mysql_password: '{{mysql_password}}'
|
mysql_password: '#{mysql_password}#'
|
||||||
mysql_user: '{{mysql_user}}'
|
mysql_user: '#{mysql_user}#'
|
||||||
mysql_db: '{{mysql_db}}'
|
mysql_db: '#{mysql_db}#'
|
||||||
mysql_ip: '{{mysql_ip}}'
|
mysql_ip: '#{mysql_ip}#'
|
||||||
ip: '{{ip}}'
|
ip: '#{ip}#'
|
||||||
ssh_user: '{{ssh_user}}'
|
ssh_user: '#{ssh_user}#'
|
||||||
ssh_key: '{{ssh_key}}'
|
ssh_key: '#{ssh_key}#'
|
||||||
|
|
||||||
|
|
||||||
- id: glance_registry_{{idx}}
|
- id: glance_registry_#{idx}#
|
||||||
from: resources/glance_registry_service
|
from: resources/glance_registry_service
|
||||||
values:
|
values:
|
||||||
ip: 'keystone_config_{{idx}}::ip'
|
ip: 'keystone_config_#{idx}#::ip'
|
||||||
ssh_user: 'keystone_config_{{idx}}::ssh_user'
|
ssh_user: 'keystone_config_#{idx}#::ssh_user'
|
||||||
ssh_key: 'keystone_config_{{idx}}::ssh_key'
|
ssh_key: 'keystone_config_#{idx}#::ssh_key'
|
||||||
|
|
||||||
tags: ['resources/keystone', 'resource/keystone_api']
|
tags: ['resources/keystone', 'resource/keystone_api']
|
||||||
|
|
||||||
|
@ -1,46 +1,46 @@
|
|||||||
id: haproxy
|
id: haproxy
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- id: haproxy_config{{index}}
|
- id: haproxy_config#{index}#
|
||||||
from: resources/haproxy_config
|
from: resources/haproxy_config
|
||||||
location: {{node}}
|
location: #{node}#
|
||||||
values:
|
values:
|
||||||
ip: '{{node}}::ip'
|
ip: '#{node}#::ip'
|
||||||
config:protocol:
|
config:protocol:
|
||||||
#% for config in service_configs %#
|
#% for config in service_configs %#
|
||||||
- {{config}}::protocol
|
- #{config}#::protocol
|
||||||
#% endfor %#
|
#% endfor %#
|
||||||
config:listen_port:
|
config:listen_port:
|
||||||
#% for config in service_configs %#
|
#% for config in service_configs %#
|
||||||
- {{config}}::listen_port
|
- #{config}#::listen_port
|
||||||
#% endfor %#
|
#% endfor %#
|
||||||
config:name:
|
config:name:
|
||||||
#% for config in service_configs %#
|
#% for config in service_configs %#
|
||||||
- {{config}}::name
|
- #{config}#::name
|
||||||
#% endfor %#
|
#% endfor %#
|
||||||
config:backends:
|
config:backends:
|
||||||
#% for config in service_configs %#
|
#% for config in service_configs %#
|
||||||
- {{config}}::backends
|
- #{config}#::backends
|
||||||
#% endfor %#
|
#% endfor %#
|
||||||
|
|
||||||
- id: haproxy_service{{index}}
|
- id: haproxy_service#{index}#
|
||||||
location: {{node}}
|
location: #{node}#
|
||||||
from: resources/haproxy_service
|
from: resources/haproxy_service
|
||||||
values:
|
values:
|
||||||
ip: '{{node}}::ip'
|
ip: '#{node}#::ip'
|
||||||
|
|
||||||
events:
|
events:
|
||||||
- type: depends_on
|
- type: depends_on
|
||||||
parent_action: 'haproxy_service{{index}}.run'
|
parent_action: 'haproxy_service#{index}#.run'
|
||||||
state: 'success'
|
state: 'success'
|
||||||
depend_action: 'haproxy_config{{index}}.run'
|
depend_action: 'haproxy_config#{index}#.run'
|
||||||
|
|
||||||
- type: react_on
|
- type: react_on
|
||||||
parent_action: 'haproxy_config{{index}}.run'
|
parent_action: 'haproxy_config#{index}#.run'
|
||||||
state: 'success'
|
state: 'success'
|
||||||
depend_action: 'haproxy_service{{index}}.apply_config'
|
depend_action: 'haproxy_service#{index}#.apply_config'
|
||||||
|
|
||||||
- type: react_on
|
- type: react_on
|
||||||
parent_action: 'haproxy_config{{index}}.update'
|
parent_action: 'haproxy_config#{index}#.update'
|
||||||
state: 'success'
|
state: 'success'
|
||||||
depend_action: 'haproxy_service{{index}}.apply_config'
|
depend_action: 'haproxy_service#{index}#.apply_config'
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
id: keystone_api_{{idx}}
|
id: keystone_api_#{idx}#
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- id: keystone_service_{{idx}}
|
- id: keystone_service_#{idx}#
|
||||||
from: resources/keystone_puppet
|
from: resources/keystone_puppet
|
||||||
values:
|
values:
|
||||||
admin_token: '{{admin_token}}'
|
admin_token: '#{admin_token}#'
|
||||||
db_host: '{{db_host}}'
|
db_host: '#{db_host}#'
|
||||||
db_name: '{{db_name}}'
|
db_name: '#{db_name}#'
|
||||||
db_user: '{{db_user}}'
|
db_user: '#{db_user}#'
|
||||||
db_password: '{{db_password}}'
|
db_password: '#{db_password}#'
|
||||||
|
|
||||||
admin_port: {{admin_port}}
|
admin_port: #{admin_port}#
|
||||||
port: {{port}}
|
port: #{port}#
|
||||||
ip: '{{ip}}'
|
ip: '#{ip}#'
|
||||||
ssh_user: '{{ssh_user}}'
|
ssh_user: '#{ssh_user}#'
|
||||||
ssh_key: '{{ssh_key}}'
|
ssh_key: '#{ssh_key}#'
|
||||||
|
|
||||||
|
|
||||||
tags: ['resources/keystone', 'resource/keystone_api']
|
tags: ['resources/keystone', 'resource/keystone_api']
|
||||||
|
@ -4,22 +4,22 @@ resources:
|
|||||||
- id: keystone_db
|
- id: keystone_db
|
||||||
from: resources/mariadb_db
|
from: resources/mariadb_db
|
||||||
values:
|
values:
|
||||||
db_name: '{{db_name}}'
|
db_name: '#{db_name}#'
|
||||||
db_host: '{{db_host}}'
|
db_host: '#{db_host}#'
|
||||||
login_user: '{{login_user}}'
|
login_user: '#{login_user}#'
|
||||||
login_password: '{{login_password}}'
|
login_password: '#{login_password}#'
|
||||||
login_port: '{{login_port}}'
|
login_port: '#{login_port}#'
|
||||||
ip: '{{ip}}'
|
ip: '#{ip}#'
|
||||||
ssh_user: '{{ssh_user}}'
|
ssh_user: '#{ssh_user}#'
|
||||||
ssh_key: '{{ssh_key}}'
|
ssh_key: '#{ssh_key}#'
|
||||||
|
|
||||||
- id: keystone_db_user
|
- id: keystone_db_user
|
||||||
from: resources/mariadb_user
|
from: resources/mariadb_user
|
||||||
values:
|
values:
|
||||||
user_password: '{{user_password}}'
|
user_password: '#{user_password}#'
|
||||||
user_name: '{{user_name}}'
|
user_name: '#{user_name}#'
|
||||||
db_name: 'keystone_db::db_name'
|
db_name: 'keystone_db::db_name'
|
||||||
db_host: '{{db_host}}'
|
db_host: '#{db_host}#'
|
||||||
login_user: 'keystone_db::login_user'
|
login_user: 'keystone_db::login_user'
|
||||||
login_password: 'keystone_db::login_password'
|
login_password: 'keystone_db::login_password'
|
||||||
login_port: 'keystone_db::login_port'
|
login_port: 'keystone_db::login_port'
|
||||||
|
@ -1,43 +1,43 @@
|
|||||||
id: mos_repos
|
id: mos_repos
|
||||||
resources:
|
resources:
|
||||||
- id: mos_holdback_{{index}}
|
- id: mos_holdback_#{index}#
|
||||||
from: resources/apt_repo
|
from: resources/apt_repo
|
||||||
location: {{node}}
|
location: #{node}#
|
||||||
values:
|
values:
|
||||||
name: mos-holdback
|
name: mos-holdback
|
||||||
package: '*'
|
package: '*'
|
||||||
repo: deb http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0/ mos8.0-holdback main restricted
|
repo: deb http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0/ mos8.0-holdback main restricted
|
||||||
pin: release o=Mirantis,n=mos8.0,a=mos8.0-holdback,l=mos8.0
|
pin: release o=Mirantis,n=mos8.0,a=mos8.0-holdback,l=mos8.0
|
||||||
pin_priority: 1100
|
pin_priority: 1100
|
||||||
- id: mos_security_{{index}}
|
- id: mos_security_#{index}#
|
||||||
from: resources/apt_repo
|
from: resources/apt_repo
|
||||||
location: {{node}}
|
location: #{node}#
|
||||||
values:
|
values:
|
||||||
name: mos
|
name: mos
|
||||||
package: '*'
|
package: '*'
|
||||||
repo: deb http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0/ mos8.0-security main restricted
|
repo: deb http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0/ mos8.0-security main restricted
|
||||||
pin: release o=Mirantis,n=mos8.0,a=mos8.0-security,l=mos8.0
|
pin: release o=Mirantis,n=mos8.0,a=mos8.0-security,l=mos8.0
|
||||||
pin_priority: 1050
|
pin_priority: 1050
|
||||||
- id: mos_updates_{{index}}
|
- id: mos_updates_#{index}#
|
||||||
from: resources/apt_repo
|
from: resources/apt_repo
|
||||||
location: {{node}}
|
location: #{node}#
|
||||||
values:
|
values:
|
||||||
name: mos_update
|
name: mos_update
|
||||||
package: '*'
|
package: '*'
|
||||||
repo: deb http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0/ mos8.0-updates main restricted
|
repo: deb http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0/ mos8.0-updates main restricted
|
||||||
pin: release o=Mirantis,a=mos8.0-updates,l=mos8.0,n=mos8.0
|
pin: release o=Mirantis,a=mos8.0-updates,l=mos8.0,n=mos8.0
|
||||||
pin_priority: 1050
|
pin_priority: 1050
|
||||||
- id: managed_apt_{{index}}
|
- id: managed_apt_#{index}#
|
||||||
from: resources/managed_apt
|
from: resources/managed_apt
|
||||||
location: {{node}}
|
location: #{node}#
|
||||||
values:
|
values:
|
||||||
names:
|
names:
|
||||||
- mos_holdback_{{index}}::name
|
- mos_holdback_#{index}#::name
|
||||||
- mos_security_{{index}}::name
|
- mos_security_#{index}#::name
|
||||||
- mos_updates_{{index}}::name
|
- mos_updates_#{index}#::name
|
||||||
repos:
|
repos:
|
||||||
- mos_holdback_{{index}}::repo
|
- mos_holdback_#{index}#::repo
|
||||||
- mos_security_{{index}}::repo
|
- mos_security_#{index}#::repo
|
||||||
- mos_updates_{{index}}::repo
|
- mos_updates_#{index}#::repo
|
||||||
ensure_other_removed: false
|
ensure_other_removed: false
|
||||||
|
|
||||||
|
@ -2,36 +2,36 @@ id: simple_riak_with_transports
|
|||||||
resources:
|
resources:
|
||||||
#% for i in range(count|int) %#
|
#% for i in range(count|int) %#
|
||||||
#% set j = i +1 %#
|
#% set j = i +1 %#
|
||||||
- id: ssh_transport{{j}}
|
- id: ssh_transport#{j}#
|
||||||
from: resources/transport_ssh
|
from: resources/transport_ssh
|
||||||
values:
|
values:
|
||||||
ssh_user: 'vagrant'
|
ssh_user: 'vagrant'
|
||||||
ssh_key: '/vagrant/.vagrant/machines/solar-dev{{j}}/virtualbox/private_key'
|
ssh_key: '/vagrant/.vagrant/machines/solar-dev#{j}#/virtualbox/private_key'
|
||||||
- id: rsync{{j}}
|
- id: rsync#{j}#
|
||||||
from: resources/transport_rsync
|
from: resources/transport_rsync
|
||||||
values:
|
values:
|
||||||
user: vagrant
|
user: vagrant
|
||||||
key: /vagrant/.vagrant/machines/solar-dev{{j}}/virtualbox/private_key
|
key: /vagrant/.vagrant/machines/solar-dev#{j}#/virtualbox/private_key
|
||||||
- id: transports{{j}}
|
- id: transports#{j}#
|
||||||
from: resources/transports
|
from: resources/transports
|
||||||
values:
|
values:
|
||||||
transports:
|
transports:
|
||||||
- key: ssh_transport{{j}}::ssh_key
|
- key: ssh_transport#{j}#::ssh_key
|
||||||
user: ssh_transport{{j}}::ssh_user
|
user: ssh_transport#{j}#::ssh_user
|
||||||
port: ssh_transport{{j}}::ssh_port
|
port: ssh_transport#{j}#::ssh_port
|
||||||
name: ssh_transport{{j}}::name
|
name: ssh_transport#{j}#::name
|
||||||
- key: rsync{{j}}::key
|
- key: rsync#{j}#::key
|
||||||
name: rsync{{j}}::name
|
name: rsync#{j}#::name
|
||||||
user: rsync{{j}}::user
|
user: rsync#{j}#::user
|
||||||
port: rsync{{j}}::port
|
port: rsync#{j}#::port
|
||||||
- id: node{{j}}
|
- id: node#{j}#
|
||||||
from: resources/ro_node
|
from: resources/ro_node
|
||||||
values:
|
values:
|
||||||
name: node{{j}}
|
name: node#{j}#
|
||||||
ip: '10.0.0.{{i + 3}}'
|
ip: '10.0.0.#{i + 3}#'
|
||||||
transports_id: transports{{j}}::transports_id
|
transports_id: transports#{j}#::transports_id
|
||||||
- id: hosts_file{{j}}
|
- id: hosts_file#{j}#
|
||||||
from: resources/hosts_file
|
from: resources/hosts_file
|
||||||
location: node{{j}}
|
location: node#{j}#
|
||||||
tags: ['location=node{{j}}']
|
tags: ['location=node#{j}#']
|
||||||
#% endfor %#
|
#% endfor %#
|
||||||
|
@ -4,7 +4,7 @@ id: simple_multinode_gre
|
|||||||
# eth3 - ext 10.2.0.0/24
|
# eth3 - ext 10.2.0.0/24
|
||||||
resources:
|
resources:
|
||||||
#% for i in range(count|int) %#
|
#% for i in range(count|int) %#
|
||||||
- id: node{{i}}_sdn
|
- id: node#{i}#_sdn
|
||||||
from: resources/node_network_puppet
|
from: resources/node_network_puppet
|
||||||
values:
|
values:
|
||||||
use_ovs: true
|
use_ovs: true
|
||||||
@ -46,18 +46,18 @@ resources:
|
|||||||
endpoints:
|
endpoints:
|
||||||
br-mesh:
|
br-mesh:
|
||||||
IP:
|
IP:
|
||||||
- 10.1.0.{{3 + i}}/24
|
- 10.1.0.#{3 + i}#/24
|
||||||
br-floating:
|
br-floating:
|
||||||
IP: none
|
IP: none
|
||||||
br-mgmt:
|
br-mgmt:
|
||||||
IP:
|
IP:
|
||||||
- 10.0.0.{{3 + i}}/24
|
- 10.0.0.#{3 + i}#/24
|
||||||
vendor_specific:
|
vendor_specific:
|
||||||
phy_interfaces:
|
phy_interfaces:
|
||||||
- eth1
|
- eth1
|
||||||
br-ex:
|
br-ex:
|
||||||
IP:
|
IP:
|
||||||
- 10.2.0.{{3 + i}}/24
|
- 10.2.0.#{3 + i}#/24
|
||||||
vendor_specific:
|
vendor_specific:
|
||||||
phy_interfaces:
|
phy_interfaces:
|
||||||
- eth3
|
- eth3
|
||||||
|
@ -1,32 +1,32 @@
|
|||||||
id: simple_multinode_with_transports
|
id: simple_multinode_with_transports
|
||||||
resources:
|
resources:
|
||||||
#% for i in range(count|int) %#
|
#% for i in range(count|int) %#
|
||||||
- id: ssh_transport{{i}}
|
- id: ssh_transport#{i}#
|
||||||
from: resources/transport_ssh
|
from: resources/transport_ssh
|
||||||
values:
|
values:
|
||||||
ssh_user: 'vagrant'
|
ssh_user: 'vagrant'
|
||||||
ssh_key: '/vagrant/.vagrant/machines/solar-dev{{i + 1}}/virtualbox/private_key'
|
ssh_key: '/vagrant/.vagrant/machines/solar-dev#{i + 1}#/virtualbox/private_key'
|
||||||
- id: rsync{{i}}
|
- id: rsync#{i}#
|
||||||
from: resources/transport_rsync
|
from: resources/transport_rsync
|
||||||
values:
|
values:
|
||||||
user: vagrant
|
user: vagrant
|
||||||
key: /vagrant/.vagrant/machines/solar-dev{{i + 1}}/virtualbox/private_key
|
key: /vagrant/.vagrant/machines/solar-dev#{i + 1}#/virtualbox/private_key
|
||||||
- id: transports{{i}}
|
- id: transports#{i}#
|
||||||
from: resources/transports
|
from: resources/transports
|
||||||
values:
|
values:
|
||||||
transports:
|
transports:
|
||||||
- key: ssh_transport{{i}}::ssh_key
|
- key: ssh_transport#{i}#::ssh_key
|
||||||
user: ssh_transport{{i}}::ssh_user
|
user: ssh_transport#{i}#::ssh_user
|
||||||
port: ssh_transport{{i}}::ssh_port
|
port: ssh_transport#{i}#::ssh_port
|
||||||
name: ssh_transport{{i}}::name
|
name: ssh_transport#{i}#::name
|
||||||
- key: rsync{{i}}::key
|
- key: rsync#{i}#::key
|
||||||
name: rsync{{i}}::name
|
name: rsync#{i}#::name
|
||||||
user: rsync{{i}}::user
|
user: rsync#{i}#::user
|
||||||
port: rsync{{i}}::port
|
port: rsync#{i}#::port
|
||||||
- id: node{{i}}
|
- id: node#{i}#
|
||||||
from: resources/ro_node
|
from: resources/ro_node
|
||||||
values:
|
values:
|
||||||
ip: '10.0.0.{{i + 3}}'
|
ip: '10.0.0.#{i + 3}#'
|
||||||
transports_id: transports{{i}}::transports_id
|
transports_id: transports#{i}#::transports_id
|
||||||
name: node{{i}}
|
name: node#{i}#
|
||||||
#% endfor %#
|
#% endfor %#
|
||||||
|
@ -2,25 +2,25 @@ id: not_provisioned_nodes
|
|||||||
resources:
|
resources:
|
||||||
#% for node in nodes %#
|
#% for node in nodes %#
|
||||||
#% set id = node.id | replace(':', '_') %#
|
#% set id = node.id | replace(':', '_') %#
|
||||||
- id: ssh_transport{{ id }}
|
- id: ssh_transport#{ id }#
|
||||||
from: resources/transport_ssh
|
from: resources/transport_ssh
|
||||||
values:
|
values:
|
||||||
ssh_user: 'root'
|
ssh_user: 'root'
|
||||||
ssh_key: '/vagrant/tmp/keys/ssh_private'
|
ssh_key: '/vagrant/tmp/keys/ssh_private'
|
||||||
- id: transports{{id}}
|
- id: transports#{id}#
|
||||||
from: resources/transports
|
from: resources/transports
|
||||||
values:
|
values:
|
||||||
transports:key: ssh_transport{{id}}::ssh_key
|
transports:key: ssh_transport#{id}#::ssh_key
|
||||||
transports:user: ssh_transport{{id}}::ssh_user
|
transports:user: ssh_transport#{id}#::ssh_user
|
||||||
transports:port: ssh_transport{{id}}::ssh_port
|
transports:port: ssh_transport#{id}#::ssh_port
|
||||||
transports:name: ssh_transport{{id}}::name
|
transports:name: ssh_transport#{id}#::name
|
||||||
- id: node_{{id}}
|
- id: node_#{id}#
|
||||||
from: resources/not_provisioned_node
|
from: resources/not_provisioned_node
|
||||||
values:
|
values:
|
||||||
ip: {{node.ip}}
|
ip: #{node.ip}#
|
||||||
transports_id: transports{{id}}::transports_id
|
transports_id: transports#{id}#::transports_id
|
||||||
name: node_{{id}}
|
name: node_#{id}#
|
||||||
admin_mac: {{node.mac}}
|
admin_mac: #{node.mac}#
|
||||||
#% endfor %#
|
#% endfor %#
|
||||||
|
|
||||||
- id: ssh_transport_master
|
- id: ssh_transport_master
|
||||||
|
@ -5,12 +5,12 @@ resources:
|
|||||||
from: resources/keystone_tenant
|
from: resources/keystone_tenant
|
||||||
values:
|
values:
|
||||||
tenant_name: admin
|
tenant_name: admin
|
||||||
keystone_port: '{{keystone_admin_port}}'
|
keystone_port: '#{keystone_admin_port}#'
|
||||||
keystone_host: '{{keystone_ip}}'
|
keystone_host: '#{keystone_ip}#'
|
||||||
admin_token: '{{admin_token}}'
|
admin_token: '#{admin_token}#'
|
||||||
ip: '{{ip}}'
|
ip: '#{ip}#'
|
||||||
ssh_user: '{{ssh_user}}'
|
ssh_user: '#{ssh_user}#'
|
||||||
ssh_key: '{{ssh_key}}'
|
ssh_key: '#{ssh_key}#'
|
||||||
|
|
||||||
- id: admin_user
|
- id: admin_user
|
||||||
from: resources/keystone_user
|
from: resources/keystone_user
|
||||||
@ -18,12 +18,12 @@ resources:
|
|||||||
user_name: 'admin'
|
user_name: 'admin'
|
||||||
user_password: 'admin'
|
user_password: 'admin'
|
||||||
tenant_name: 'admin_tenant::tenant_name'
|
tenant_name: 'admin_tenant::tenant_name'
|
||||||
keystone_port: '{{keystone_admin_port}}'
|
keystone_port: '#{keystone_admin_port}#'
|
||||||
keystone_host: '{{keystone_ip}}'
|
keystone_host: '#{keystone_ip}#'
|
||||||
admin_token: '{{admin_token}}'
|
admin_token: '#{admin_token}#'
|
||||||
ip: '{{ip}}'
|
ip: '#{ip}#'
|
||||||
ssh_user: '{{ssh_user}}'
|
ssh_user: '#{ssh_user}#'
|
||||||
ssh_key: '{{ssh_key}}'
|
ssh_key: '#{ssh_key}#'
|
||||||
|
|
||||||
- id: admin_role
|
- id: admin_role
|
||||||
from: resources/keystone_role
|
from: resources/keystone_role
|
||||||
@ -31,44 +31,44 @@ resources:
|
|||||||
role_name: 'admin'
|
role_name: 'admin'
|
||||||
user_name: 'admin_user::user_name'
|
user_name: 'admin_user::user_name'
|
||||||
tenant_name: 'admin_user::tenant_name'
|
tenant_name: 'admin_user::tenant_name'
|
||||||
keystone_port: '{{keystone_admin_port}}'
|
keystone_port: '#{keystone_admin_port}#'
|
||||||
keystone_host: '{{keystone_ip}}'
|
keystone_host: '#{keystone_ip}#'
|
||||||
admin_token: '{{admin_token}}'
|
admin_token: '#{admin_token}#'
|
||||||
ip: '{{ip}}'
|
ip: '#{ip}#'
|
||||||
ssh_user: '{{ssh_user}}'
|
ssh_user: '#{ssh_user}#'
|
||||||
ssh_key: '{{ssh_key}}'
|
ssh_key: '#{ssh_key}#'
|
||||||
|
|
||||||
- id: keystone_service_endpoint
|
- id: keystone_service_endpoint
|
||||||
from: resources/keystone_service_endpoint
|
from: resources/keystone_service_endpoint
|
||||||
values:
|
values:
|
||||||
#% raw %#
|
#% raw %#
|
||||||
adminurl: 'http://{{admin_ip}}:{{admin_port}}/v2.0'
|
adminurl: 'http://#{admin_ip}#:#{admin_port}#/v2.0'
|
||||||
internalurl: 'http://{{internal_ip}}:{{internal_port}}/v2.0'
|
internalurl: 'http://#{internal_ip}#:#{internal_port}#/v2.0'
|
||||||
publicurl: 'http://{{public_ip}}:{{public_port}}/v2.0'
|
publicurl: 'http://#{public_ip}#:#{public_port}#/v2.0'
|
||||||
#% endraw %#
|
#% endraw %#
|
||||||
description: 'OpenStack Identity Service'
|
description: 'OpenStack Identity Service'
|
||||||
type: 'identity'
|
type: 'identity'
|
||||||
endpoint_name: 'keystone'
|
endpoint_name: 'keystone'
|
||||||
admin_port: '{{keystone_admin_port}}'
|
admin_port: '#{keystone_admin_port}#'
|
||||||
public_port: '{{keystone_port}}'
|
public_port: '#{keystone_port}#'
|
||||||
internal_port: '{{keystone_port}}'
|
internal_port: '#{keystone_port}#'
|
||||||
admin_ip: '{{ip}}'
|
admin_ip: '#{ip}#'
|
||||||
public_ip: '{{ip}}'
|
public_ip: '#{ip}#'
|
||||||
internal_ip: '{{ip}}'
|
internal_ip: '#{ip}#'
|
||||||
keystone_admin_port: '{{keystone_admin_port}}'
|
keystone_admin_port: '#{keystone_admin_port}#'
|
||||||
keystone_host: '{{keystone_ip}}'
|
keystone_host: '#{keystone_ip}#'
|
||||||
admin_token: '{{admin_token}}'
|
admin_token: '#{admin_token}#'
|
||||||
ip: '{{ip}}'
|
ip: '#{ip}#'
|
||||||
ssh_user: '{{ssh_user}}'
|
ssh_user: '#{ssh_user}#'
|
||||||
ssh_key: '{{ssh_key}}'
|
ssh_key: '#{ssh_key}#'
|
||||||
|
|
||||||
- id: service_tenant
|
- id: service_tenant
|
||||||
from: resources/keystone_tenant
|
from: resources/keystone_tenant
|
||||||
values:
|
values:
|
||||||
tenant_name: services
|
tenant_name: services
|
||||||
keystone_port: '{{keystone_admin_port}}'
|
keystone_port: '#{keystone_admin_port}#'
|
||||||
keystone_host: '{{keystone_ip}}'
|
keystone_host: '#{keystone_ip}#'
|
||||||
admin_token: '{{admin_token}}'
|
admin_token: '#{admin_token}#'
|
||||||
ip: '{{ip}}'
|
ip: '#{ip}#'
|
||||||
ssh_user: '{{ssh_user}}'
|
ssh_user: '#{ssh_user}#'
|
||||||
ssh_key: '{{ssh_key}}'
|
ssh_key: '#{ssh_key}#'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
id: {{id}}
|
id: #{id}#
|
||||||
type: profile
|
type: profile
|
||||||
|
|
||||||
extensions:
|
extensions:
|
||||||
@ -7,7 +7,7 @@ extensions:
|
|||||||
- id: ansible
|
- id: ansible
|
||||||
version: '1.0.0'
|
version: '1.0.0'
|
||||||
|
|
||||||
tags: {{tags}}
|
tags: #{tags}#
|
||||||
|
|
||||||
connections:
|
connections:
|
||||||
# keystone
|
# keystone
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
id: sources
|
id: sources
|
||||||
resources:
|
resources:
|
||||||
- id: sources{{index}}
|
- id: sources#{index}#
|
||||||
from: resources/sources
|
from: resources/sources
|
||||||
location: {{node}}
|
location: #{node}#
|
||||||
values:
|
values:
|
||||||
sources:
|
sources:
|
||||||
- {src: /tmp/sources_test, dst: /tmp/sources_test}
|
- {src: /tmp/sources_test, dst: /tmp/sources_test}
|
||||||
|
Loading…
Reference in New Issue
Block a user