Mastering Puppet Second Edition by 2016

Mastering Puppet Second Edition by 2016

Author:2016
Language: eng
Format: epub, mobi
Publisher: Packt Publishing


These ini_setting resources will create five lines within the [domain/PROD] section of the configuration file. We need to add PROD to the list of domains; for this, we'll use ini_subsetting as shown in the following snippet. The ini_subsetting type allows us to add sub settings to a single setting:

ini_subsetting {'domains_prod': path => '/etc/sssd/sssd.conf', section => 'sssd', setting => 'domains', subsetting => 'PROD', }

Now, we'll add sssd_prod to our client.yaml file and run puppet agent on client to see the changes, as shown here:

[root@client ~]# puppet agent -t … Info: Applying configuration version '1443519502' Notice: /Stage[main]/Sssd_prod/File[/etc/sssd]/ensure: created … Notice: /Stage[main]/Sssd_prod/Ini_setting[krb5_server_prod]/ensure: created Notice: /Stage[main]/Sssd_prod/Ini_subsetting[domains_prod]/ensure: created Notice: Applied catalog in 1.07 seconds



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.