Can you give some error message you are seeing? Regards, Markus
Sent from my iPhone > On 29 Dec 2016, at 15:43, Denny Fuchs <linuxm...@4lin.net> wrote: > > Hello, > > I want to manage nearly all with Hiera and have some trouble to understand > the underlying syntax. > > I try to use roles and profiles: > > * Profile for Icinga2 Master: modules/profile/manifests/icinga2/server.pp > > class profile::icinga2::server { > include ::icinga2 > include ::icinga2::feature::api > # contain ::icinga2::pki::puppet > user { 'nagios': > groups => ssl-cert > } > } > > * Role for Icinga2 Master: modules/role/manifests/icinga2_server.pp > > class role::icinga2_server { > include profile::base > include profile::icinga2::server > > } > > * Hiera role includes: hieradata/role/mon.yaml > > --- > classes: > - role::mysql_server > - role::icinga2_server > - role::webserver > - role::web::icingaweb2 > > * Node specified things: hieradata/node/mon.example.com.yaml > > --- > [...] > icinga2::ido_db : 'mysql' > icinga2::ido_type : 'mysql' > icinga2::ido_db_host : '127.0.0.1' > icinga2::ido_db_port : 3306 > icinga2::ido_db_user : 'icinga2_ido_db' > icinga2::ido_db_name : 'icinga2_ido_db' > icinga2::web_db : 'mysql' > icinga2::web_type : 'mysql' > icinga2::web_db_host : 'localhost' > icinga2::web_db_port : 3306 > icinga2::web_db_user : 'icingaweb2_db' > icinga2::web_db_name : 'icingaweb2_db' > icinga2::web_db_prefix: 'icingaweb_' > icinga2::manage_database: true > icinga2::restart_cmd: 'service icinga2 reload' > icinga2::db_host: "%{hiera('icinga2::ido_db_host')}" > icinga2::db_type: "%{hiera('icinga2::ido_db')}" > icinga2::db_name: "%{hiera('icinga2::ido_db_name')}" > icinga2::db_pass: "%{hiera('icinga2::ido_db_pass')}" > icinga2::db_user: "%{hiera('icinga2::ido_db_user')}" > icinga2::db_schema: /usr/share/icinga2-ido-mysql/schema/mysql.sql > icinga2::features::api: > bind_host: '127.0.0.1' > accept_config: true > ca_path: '/etc/ssl/certs/ca.crt' > cert_path: '/etc/ssl/certs/bla.cert' > key_path: '/etc/ssl/certs/bla.key' > icinga2::features: > command: > - manage_file: true > syslog: > - manage_file: true > [...] > > > I didn't get for example the icinga2::features::api working. So I assume, > I've forgotten something or the class is wrong. I wanted to change the cert > path, but the parameter isn't recognized. > > > Can someone give me some examples to manage the master with hiera ? :-) > > cu denny > _______________________________________________ > icinga-users mailing list > icinga-users@lists.icinga.org > https://lists.icinga.org/mailman/listinfo/icinga-users
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users