Handson1: Difference between revisions
From Gridkaschool
Jump to navigationJump to search
Line 25: | Line 25: | ||
##* https://docs.puppetlabs.com/puppet/latest/reference/lang_resources.html |
##* https://docs.puppetlabs.com/puppet/latest/reference/lang_resources.html |
||
##* puppet apply --help |
##* puppet apply --help |
||
# Write the second Manifest |
# Write the second Manifest [[File:puppet_handson12.tar.gz]] |
||
## Create a puppet manifest which creates the file ''/etc/motd'' with the content ''Hello World!''. Filename: ''handson1motd.pp'' |
## Create a puppet manifest which creates the file ''/etc/motd'' with the content ''Hello World!''. Filename: ''handson1motd.pp'' |
||
## Apply the manifest to your node |
## Apply the manifest to your node |
Revision as of 11:04, 27 August 2014
Hands-On
Environment
- Login via ssh to the workgroup server naf-school01.desy.de with your assigned account
- Check if you can login via ssh to you assigned VM as root
- Check if you can edit a text file on the wgs and the node. We provide vim, emacs, nano
Puppet first steps
- Use the puppet RAL to examine and configure the VM node solution
- Show all managed resources
- Show description of the resource service
- Show all configured services
- Create a testuser
- Show resource of the created user
- Delete the testuser
- HINT:
- puppet resource --help
- puppet describe
- https://docs.puppetlabs.com/references/latest/type.html#user-attribute-ensure</source>
- Write the first Manifest
- Create a puppet manifest which creates two testuser. Filename: handson1create.pp
- Create a puppet manifest which removes both testuser. Filename: handson1remove.pp
- Concatenate both puppet manifest. Filename: handson1combine.pp
- Apply the manifests to your node.
- Try to understand why the handson1combine.pp manifest fails?
- Hint:
- https://docs.puppetlabs.com/puppet/latest/reference/lang_resources.html
- puppet apply --help
- Write the second Manifest File:Puppet handson12.tar.gz
- Create a puppet manifest which creates the file /etc/motd with the content Hello World!. Filename: handson1motd.pp
- Apply the manifest to your node
- Examine what happens if you re-apply the manifest.
- Add a line to the file /etc/motd and re-apply the manifest
- Hint: