Handson4: Difference between revisions

From Gridkaschool
Jump to navigationJump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
# Simple test
# Login to naf-school03.desy.de (with your schoolNN account)
## Login to gridkalogin01.desy.de (with your schoolNN account)
# Go in the folder school/git/puppet
# Examine the git repository
## Go in the folder puppet
## Examine the git repository
#* log
#* status
##* pull
##* log
# Add a test file
##* status
#* Create the file
## Alter or add a file
#* Add the file to your local repo
#* commit the local change
##* Create or change the file
##* If you create a new file you have to add it to the git repo
#* push your commit to the server
##* commit the local change
# Try to find your changes on naf-school02.desy.de under /var/git/puppet
# Remove your change. Choose one option
##* push your commit to the server
## Try to find your changes on gridkapuppet01.desy.de under /etc/puppet/environments
#* reset the reposiory to initial state
## Remove your change (on gridkalogin01). Choose one option
#* remove the file and commit the change
# push the updated repository to the server. (if you use reset you have to use -f)
##* reset the repository to initial state
##* remove/change the file and commit
# Examine again the git repository
##* push the updated repository to the server. (if you use reset you have to use -f)
# A [[puppetsession01|example]] session made by me
## Examine again the puppet environment on gridkapuppet01.desy.de
## A [[puppetsession01|example]] session made by me
# Real Test
## Change the in the module motd in the file modules/motd/manifests/init.pp the default message.
## commit and push your change
## Login in to your VM node (gridkaschoolNN)
## Run the puppet agent (puppet agent -t)

Latest revision as of 11:16, 10 August 2016

  1. Simple test
    1. Login to gridkalogin01.desy.de (with your schoolNN account)
    2. Go in the folder puppet
    3. Examine the git repository
      • pull
      • log
      • status
    4. Alter or add a file
      • Create or change the file
      • If you create a new file you have to add it to the git repo
      • commit the local change
      • push your commit to the server
    5. Try to find your changes on gridkapuppet01.desy.de under /etc/puppet/environments
    6. Remove your change (on gridkalogin01). Choose one option
      • reset the repository to initial state
      • remove/change the file and commit
      • push the updated repository to the server. (if you use reset you have to use -f)
    7. Examine again the puppet environment on gridkapuppet01.desy.de
    8. A example session made by me
  2. Real Test
    1. Change the in the module motd in the file modules/motd/manifests/init.pp the default message.
    2. commit and push your change
    3. Login in to your VM node (gridkaschoolNN)
    4. Run the puppet agent (puppet agent -t)