Installing Puppet on PicOS
NOTE:
You can see an example of Puppet module to manipulate PicOS configuration on our Github repository:
      https://github.com/Pica8/Configuration-Managers
If the FTP server is connected via the Eth0/1 port, you need to add the string sudo ip vrf exec mgmt-vrf before the apt-get command when executing the apt-get operation.
For example:
admin@Xorplus:~$ sudo ip vrf exec mgmt-vrf apt-get update
Â
If sudo ip vrf exec mgmt-vrf is not added, find the next hop routing information from the default VRF. For the usage of VRF, refer to the VRF configuration guide.
Â
Step 1 Use the correct repository for the specific application and CPU on the switch. Pica8 support can help in the choice of repository.
admin@PICOS:~$sudo more /etc/apt/sources.list | grep -v "#"
deb http://ftp.debian-ports.org/debian/ unstable main
For a typical puppet installation, the latest standard debian repo is advised.
Â
Step 2 Update the debian packages on PicOS.
admin@PICOS:~$ sudo apt-get update
Hit http://ftp.tw.debian.org stable Release.gpg
Hit http://ftp.tw.debian.org stable Release
Hit http://ftp.tw.debian.org stable/main powerpc Packages
Hit http://ftp.tw.debian.org stable/main Translation-en
Reading package lists... Done
admin@PICOS:~$
Â
Step 3 Install puppet client and configure it.
admin@PICOS:~$ sudo apt-get install puppet
Look at the puppet documentation to understand how to connect the puppet client to a puppet server. A simple installation would require at least minor modification on the puppet.conf file.
more /etc/puppet/puppet.conf
[agent]
server = master.local.pica8.com
Step 4 Verify Puppet installation.
admin@PICOS:~$ sudo puppet agent -t
Notice: Using less secure serialization of reports and query parameters for compatibility
Notice: with older puppet master. To remove this notice, please upgrade your master(s)
Notice: to Puppet 3.3 or newer.
Notice: See http://links.puppetlabs.com/deprecate_yaml_on_network for more information.
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/instance_id.rb
Info: Caching catalog for Roma
Info: Applying configuration version '1405148228'
Notice: Finished catalog run in 0.35 seconds
Â
Â
Copyright © 2024 Pica8 Inc. All Rights Reserved.