Basics Flashcards
if it hasn’t already been created, you can create a simple puppet.conf file using the following command:
puppetmasterd –genconfig > puppet.conf
Puppet’s configuration will be located under the ? directory. Puppet’s principal configuration file is called puppet.conf and is stored:
/etc/puppet directory /etc/puppet/puppet.conf.
In the puppet.conf what are the 3 sections
[agent] section configures the Puppet agent,[master] section configures the Puppet master binary. There is also a global configuration section called [main]. All components of Puppet will set options specified in the [main] section.
In puppet.conf specifies the name of the Puppet master. How would you add the certname value to the [master] section
[master] certname=puppet.example.com
What file tells Puppet where and what configuration to load for our clients?.
/etc/puppet/manifests/site.pp
Puppet will not start without the ? file being present.
/etc/puppet/manifests/site.pp file
The Puppet master runs on TCP port ?
TCP port 8140.
The Puppet master can be started via an init script on most Linux distributions.
On Red Hat: # service puppetmaster start On Debian or Ubuntu:# invoke-rc.d puppetmaster start
What does a resource look like?
type { title: attribute => value, }
what is the RAL?
Resource Abstraction Layer
what does the Resource Abstraction Layer do?
The RAL knows how different platforms and OSs manage certain types of resources.
What tool is used to return information about agents
Facter, in a system inventory tool.
In what format are ‘facts’ from Facter return
Key => Value pairs i.e operatingsystem => Ubuntu
What 4 main tasks does the Transactional Layer do?
- interpret and compile your configuration2. Communicate the compiled config to the agent3. Apple the config on the agent4. Report the results of that application to the master.
What does idempotent mean?
Multiple applications of the same operation will yield the same results. Puppet configuration can be safely run multiple times.