Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
puppet_dsl [2020/11/20 10:25] – andonovj | puppet_dsl [2020/11/20 10:28] (current) – andonovj | ||
---|---|---|---|
Line 23: | Line 23: | ||
{{ : | {{ : | ||
- | Let's start with the different functions | + | =====Resources===== |
+ | As already explained, Puppet has in-build resources | ||
- | =====User===== | + | < |
+ | [root@puppetmaster demo]# puppet describe --list | ||
+ | These are the types known to puppet: | ||
+ | augeas | ||
+ | cron - Installs and manages cron jobs | ||
+ | exec - Executes external commands | ||
+ | file - Manages files, including their content, owner ... | ||
+ | filebucket | ||
+ | group - Manage groups | ||
+ | host - Installs and manages host entries | ||
+ | mount - Manages mounted filesystems, | ||
+ | notify | ||
+ | package | ||
+ | resources | ||
+ | schedule | ||
+ | scheduled_task | ||
+ | selboolean | ||
+ | selmodule | ||
+ | service | ||
+ | ssh_authorized_key - Manages SSH authorized keys | ||
+ | sshkey | ||
+ | stage - A resource type for creating new run stages | ||
+ | tidy - Remove unwanted files based on specific crite ... | ||
+ | user - Manage users | ||
+ | whit - Whits are internal artifacts of Puppet' | ||
+ | yumrepo | ||
+ | zfs - Manage zfs | ||
+ | zone - Manages Solaris zones | ||
+ | zpool - Manage zpools | ||
+ | [root@puppetmaster demo]# | ||
+ | </ | ||
+ | |||
+ | Let's discuss some of them here. | ||
+ | |||
+ | ====User==== | ||
To create a user, we will use a simple resource (e.g. function: user, to ensure that it exist) | To create a user, we will use a simple resource (e.g. function: user, to ensure that it exist) | ||
Line 115: | Line 150: | ||
</ | </ | ||
- | =====File===== | + | ====File==== |
The File resource is as easy to be used as user. Let's see which attributes are in that resource: | The File resource is as easy to be used as user. Let's see which attributes are in that resource: | ||