Basics Flashcards

2
Q

if it hasn’t already been created, you can create a simple puppet.conf file using the following command:

A

puppetmasterd –genconfig > puppet.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Puppet’s configuration will be located under the ? directory. Puppet’s principal configuration file is called puppet.conf and is stored:

A

/etc/puppet directory /etc/puppet/puppet.conf.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In the puppet.conf what are the 3 sections

A

[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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In puppet.conf specifies the name of the Puppet master. How would you add the certname value to the [master] section

A

[master] certname=puppet.example.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What file tells Puppet where and what configuration to load for our clients?.

A

/etc/puppet/manifests/site.pp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Puppet will not start without the ? file being present.

A

/etc/puppet/manifests/site.pp file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The Puppet master runs on TCP port ?

A

TCP port 8140.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The Puppet master can be started via an init script on most Linux distributions.

A

On Red Hat: # service puppetmaster start On Debian or Ubuntu:# invoke-rc.d puppetmaster start

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does a resource look like?

A

type { title: attribute => value, }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is the RAL?

A

Resource Abstraction Layer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what does the Resource Abstraction Layer do?

A

The RAL knows how different platforms and OSs manage certain types of resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What tool is used to return information about agents

A

Facter, in a system inventory tool.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In what format are ‘facts’ from Facter return

A

Key => Value pairs i.e operatingsystem => Ubuntu

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What 4 main tasks does the Transactional Layer do?

A
  1. 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does idempotent mean?

A

Multiple applications of the same operation will yield the same results. Puppet configuration can be safely run multiple times.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is noop?

A

no operation mode. The ability to test the execution of your changes without making any changes

18
Q

Name configuration Items that Puppet can manage

A

File, Services, Packages, Users, Groups, Cron Jobs, SSH Keys, Nagios configurations.

19
Q

where is the puppet configuration file located on most platforms?

A

/etc/puppet/puppet.conf

20
Q

If puppet.conf doesn’t exist, how can it be created?

A

$ sudo puppet master –genconfig&raquo_space; /etc/puppet/puppet.conf

21
Q

what section of the puppet.conf file do we specify the Puppet master?

A

[master] certname=puppet.example.com

22
Q

What file tell Puppet where and what configuration to load for our client.

A

/etc/puppet/manifests/site.pp

23
Q

The main configuration file for puppet master, puppet agent, and puppet apply is —–

A

/etc/puppet/puppet.conf

24
Q

What is the default time for a puppet agent to wake and check-in with the puppet master (or puppetmasterd)

A

30 minutes (configurable)

25
Q

puppet apply is used when?

A

When running Puppet locally (for instance, to test manifests, or in a non-networked case, puppet apply is run instead of puppet agent. It then uses local files, and does not try to contact the central server.

26
Q

puppet cert (or puppetca) is used for what?

A

The puppet cert command is used to sign, list and examine certificates used by Puppet to secure the connection between the Puppet master and agents

27
Q

The most common usage of ‘puppet cert’ is to sign the certificates of Puppet agents awaiting authorisation. What is the command

A

puppet cert –list

28
Q

list all signed and unsigned certificates

A

puppet cert –all and –list

29
Q

What generates documentation about Puppet and your manifests?

A

puppet doc (or puppetdoc)

30
Q

What does ‘puppet resource’ do?

A

Puppet resource (also known as ralsh, for “Resource Abstraction Layer SHell”) uses Puppetʼs resource abstraction layer to interactively view and manipulate your local system

31
Q

How do you list information about a user resource?

A

puppet resource User “username”

32
Q

User puppet resource to add a user called “bob” in the “admin” group

A

puppet resource User “bob” ensure=present groups=admin

33
Q

how do you remover the resource “bob”

A

puppet resource User “bob” ensure=absent

34
Q

what command generates an inspection report and sends it to the puppet master

A

puppet inspect

35
Q

Puppet agent nodes use a library (and associated front-end tool) called ______ to provide information about the hardware and OS

A

Facter

36
Q

tell the system to operate in no-op mode

A

–noop’