J58HH

             имя хоста агента:
             мальчики пишут barbie
             девочки пишут buratino


#PUPPET NOTES

Tutorials in sequence

  [1] Everything except:

        Create manifest for testing
        Testing using a module

  [2] Prerequisites
      DNS
      Verify the Puppet Client
      Creating our first manifest

  [3] Everything

  cat /etc/hosts
  ..
  10.0.2.7      puppet
  10.0.2.8      barbie
  ..

on server:

  cat /etc/hostname
  puppet

on client:

  cat /etc/hostname
  barbie


# NOTES

1. Path: According to su manual its $PATH is controlled by /etc/login.defs [4]

  $ sudo su -
  # echo $PATH
  /usr/local/sbin:/usr/local/bin:/usr/sbin:
  /usr/bin:/sbin:/bin:/opt/puppetlabs/bin:/snap/bin

2. Failed to connect to puppet port 8140: No route to host [5]

I slept on it and realized this morning that my router had reassigned my Puppetserver to a new IP, so the DNS A record for it was wrong, even though it was manually assigned in the router's DHCP. Correcting that did the trick and now everything is working.


# LINKS

  [1] Bionic -- Puppet 6:

      https://www.bogotobogo.com/DevOps/Puppet
        /Puppet6-Install-on-Ubuntu18.0.4.php

  [2] Bionic -- Stretch -- Puppet 5:

      https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos
        /how-to-install-puppet-on-ubuntu-16-04.html

  [3] https://puppet.com/docs/puppet/5.4/quick_start_helloworld.html

  [4] https://ubuntuforums.org/showthread.php?t=874346

  [5] https://stackoverflow.com/questions/44350974
        /error-could-not-request-certificate-no-
        route-to-host-connect2-for-puppet


# ANNEX A. [1] Walkthrough

On the server node