Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tree manifests/
- manifests/
- ├── params.pp
- ├── roles.pp
- └── site.pp
- 0 directories, 3 files
- cat manifests/site.pp
- hiera_include('classes')
- #add interfaces by example42 module
- create_resources('network::interface', hiera('ifaces', {}))
- #create_resources('clean_ifcfg::iface', hiera('ifaces', {}))
- #create_resources('network::route', hiera('routes', {}))
- create_resources('routes-servionica::r', hiera('route', {}))
- create_resources('group',hiera('groupadd', {}))
- create_resources('mdb',hiera('mysql::grant', {}))
- create_resources('jenkins_makecloud::user',hiera('jenkins_user', {}))
- #$nameservers=hiera('nameservers')
- #$domainname=hiera('domainname')
- #$my_test = hiera('ext_ip')
- #notify{"ext_ip checking: $my_test":}
- #use mthibaut/users module
- node /default/ {
- users { sysadmins: }
- notify{"vlan_range in site file1=: ${vlan_range}": }
- hiera_include('params')
- notify{"vlan_range in site file2=: ${vlan_range}": }
- hiera_include('roles')
- notify{"vlan_range in site file3=: ${vlan_range}": }
- service {"NetworkManager":
- enable => 'false',
- ensure => 'stopped',
- }
- service {"network":
- enable => 'true',
- ensure => 'running',
- }
- }
- cat manifests/params.pp
- class params {
- }
- class params::stend1 {
- $vlan_range='2001:2009'
- #notice("vlan_range_in_params file=" $vlan_range)
- notify{"vlan_range_in_params file=: ${vlan_range}": }
- }
- class params::stend2 {
- }
- cat hieradata/nodes/test-node2.***.ru.yaml
- ---
- classes:
- - network
- - routes-servionica
- - test_hosts
- params:
- - params::stend1
- roles:
- - role::test
- - role::test_deploy_compute_
- extip: "192.168.16.61"
- admin_pass: '***'
- admin_email: 'k.lisovskaya@***.ru'
- controller_host: '192.168.16.60'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement