Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleConfigure hiera
root@bootstrap:/etc/puppetlabs/puppet# wget https://raw.githubusercontent.com/ntnusky/profile/infrastructuremaster/files/puppet/hiera.yaml
   ...
2017-12-22 14:18:52 (334 KB/s) - 'hiera.yaml.1' saved [72001]
root@bootstrap:/etc/puppetlabs/puppet# mv hiera.yaml.1 hiera.yaml

...

Code Block
titleDefine role for bootstrap
root@bootstrap.infra.skyhigh.iik.ntnu.no:/etc/puppetlabs/puppet/data# cat nodes/bootstrap.infra.skyhigh.iik.ntnu.no.yaml 
---
classes:
 - 'role::bootstrap'

profile::interfaces:
 - 'eno1'

profile::puppet::altnames:
 - 'puppet.skyhigh.iik.ntnu.no'
 - 'puppetdb.skyhigh.iik.ntnu.no'

profile::interfaces::eno1::method: 'static'
profile::interfaces::eno1::address: '10.212.132.9'
profile::interfaces::eno1::netmask: '255.255.255.0'
profile::interfaces::eno1::gateway: '10.212.132.1'
profile::interfaces::eno1::tableid: 1

profile::interfaces::management: 'eno1'
profile::dhcp::pxe::server: "%{hiera('profile::interfaces::eno1::address')}"
profile::dashboard::database::host: "%{hiera('profile::interfaces::eno1::address')}"

profile::haproxy::web::profile: 'management'

root@bootstrap:/etc/puppetlabs/puppet/data# grep install: common.yaml 
profile::munin::install: false
profile::sensu::install: false

...