puppet_dsl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
puppet_dsl [2020/11/20 10:23] andonovjpuppet_dsl [2020/11/20 10:28] (current) andonovj
Line 16: Line 16:
   * Resources (e.g. in-build functions & operations: file, user, router, etc, perform individual tasks)   * Resources (e.g. in-build functions & operations: file, user, router, etc, perform individual tasks)
   * Classes (e.g. combination of resources, multiple small operations)   * Classes (e.g. combination of resources, multiple small operations)
-  * Manifest (e.g. definitions and declarion of puppet classes)+  * Manifest (e.g. definitions and declarion of puppet classes, very similar to C# Classes)
   * Modules (e.g. collection of files and manifest, example: mysql & jenkins module)   * Modules (e.g. collection of files and manifest, example: mysql & jenkins module)
- 
-Summarization of these objects you can see below: 
- 
-{{ :puppetbuildingblocks.jpg?600 |}} 
  
 Once an object is created it has to go through the chain of release as follows: Once an object is created it has to go through the chain of release as follows:
Line 27: Line 23:
 {{ :puppetcodecreation.png?600 |}} {{ :puppetcodecreation.png?600 |}}
  
-So let's see that in an example:+=====Resources===== 
 +As already explained, Puppet has in-build resources and function, we can describe all in-built resources as so: 
 + 
 +<Code:bash|List in-build resources> 
 +[root@puppetmaster demo]# puppet describe --list 
 +These are the types known to puppet: 
 +augeas          - Apply a change or an array of changes to the  ... 
 +cron            - Installs and manages cron jobs 
 +exec            - Executes external commands 
 +file            - Manages files, including their content, owner ... 
 +filebucket      - A repository for storing and retrieving file  ... 
 +group           - Manage groups 
 +host            - Installs and manages host entries 
 +mount           - Manages mounted filesystems, including puttin ... 
 +notify          - Sends an arbitrary message, specified as a st ... 
 +package         - Manage packages 
 +resources       - This is a metatype that can manage other reso ... 
 +schedule        - Define schedules for Puppet 
 +scheduled_task  - Installs and manages Windows Scheduled Tasks 
 +selboolean      - Manages SELinux booleans on systems with SELi ... 
 +selmodule       - Manages loading and unloading of SELinux poli ... 
 +service         - Manage running services 
 +ssh_authorized_key - Manages SSH authorized keys 
 +sshkey          - Installs and manages ssh host keys 
 +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's curr ... 
 +yumrepo         - The client-side description of a yum reposito ... 
 +zfs             - Manage zfs 
 +zone            - Manages Solaris zones 
 +zpool           - Manage zpools 
 +[root@puppetmaster demo]# 
 +</Code> 
 + 
 +Let's discuss some of them here.
  
-=====User=====+====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 119: Line 150:
 </Code> </Code>
  
-=====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:
  
  • puppet_dsl.1605867836.txt.gz
  • Last modified: 2020/11/20 10:23
  • by andonovj