puppet enterprise centos 7 with dashboard install / uninistall
[kiran@localhost ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 19G 5.3G 14G 29% /
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.9G 4.3M 3.9G 1% /dev/shm
tmpfs 3.9G 14M 3.8G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/mapper/centos-home 1.9G 625M 1.3G 33% /home
/dev/mapper/centos-var 28G 959M 27G 4% /var
/dev/sda1 950M 170M 781M 18% /boot
tmpfs 781M 4.0K 781M 1% /run/user/989
tmpfs 781M 56K 781M 1% /run/user/1000
tmpfs 781M 0 781M 0% /run/user/0
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 19G 5.3G 14G 29% /
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.9G 4.3M 3.9G 1% /dev/shm
tmpfs 3.9G 14M 3.8G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/mapper/centos-home 1.9G 625M 1.3G 33% /home
/dev/mapper/centos-var 28G 959M 27G 4% /var
/dev/sda1 950M 170M 781M 18% /boot
tmpfs 781M 4.0K 781M 1% /run/user/989
tmpfs 781M 56K 781M 1% /run/user/1000
tmpfs 781M 0 781M 0% /run/user/0
[root@localhost Downloads]# cd puppet-enterprise-2019.1.1-el-7-x86_64/
[root@localhost puppet-enterprise-2019.1.1-el-7-x86_64]# ls
conf.d locales puppet-enterprise-uninstaller
LICENSE.txt packages README.markdown
links puppet-enterprise-installer VERSION
[root@localhost puppet-enterprise-2019.1.1-el-7-x86_64]# service firewalld stop
Redirecting to /bin/systemctl stop firewalld.service
[root@localhost puppet-enterprise-2019.1.1-el-7-x86_64]# chkconfig firewalld off
Note: Forwarding request to 'systemctl disable firewalld.service'.
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@localhost puppet-enterprise-2019.1.1-el-7-x86_64]# ./puppet-enterprise-installer
/home/kiran/Downloads/puppet-enterprise-2019.1.1-el-7-x86_64 /home/kiran/Downloads/puppet-enterprise-2019.1.1-el-7-x86_64
=============================================================
Puppet Enterprise Installer
=============================================================
## Installer analytics are enabled by default.
## To disable, set the DISABLE_ANALYTICS environment variable and rerun this script. For example, "sudo DISABLE_ANALYTICS=1 ./puppet-enterprise-installer".
## If puppet_enterprise::send_analytics_data is set to false in your existing pe.conf, this is not necessary and analytics will be disabled.
Puppet Enterprise offers the following methods of installation:
[1] Express Installation (Recommended)
This method will install PE and provide you with a link at the end of the installation to reset your PE console admin password
Make sure to click on the link and reset your password before proceeding to use PE
[2] Text-mode Install
This method will open your EDITOR (vi) with a PE config file (pe.conf) for you to edit before you proceed with installation.
The pe.conf file is a HOCON formatted file that declares parameters and values needed to install and configure PE.
We recommend that you review it carefully before proceeding.
[3] Graphical-mode Install
This method will install and configure a temporary webserver to walk you through the various configuration options.
NOTE: This method requires you to be able to access port 3000 on this machine from your desktop web browser.
=============================================================
How to proceed? [1]: 3
## We're installing the Puppet Agent...
2019-10-02T16:26:03.401+05:30 Running command: mkdir -p /opt/puppetlabs/server/data/packages/public/2019.1.1/el-7-x86_64-6.4.3
2019-10-02T16:26:03.442+05:30 Running command: cp -r -L /home/kiran/Downloads/puppet-enterprise-2019.1.1-el-7-x86_64/packages/el-7-x86_64/* /opt/puppetlabs/server/data/packages/public/2019.1.1/el-7-x86_64-6.4.3
2019-10-02T16:28:49.309+05:30 Running command: rm -f /opt/puppetlabs/server/data/packages/public/2019.1.1/puppet_enterprise
2019-10-02T16:28:49.553+05:30 Running command: ln -s /opt/puppetlabs/server/data/packages/public/2019.1.1/el-7-x86_64-6.4.3 /opt/puppetlabs/server/data/packages/public/2019.1.1/puppet_enterprise
2019-10-02T16:28:49.564+05:30 Running command: cp -r -L /home/kiran/Downloads/puppet-enterprise-2019.1.1-el-7-x86_64/packages/GPG-KEY-puppet* /opt/puppetlabs/server/data/packages/public
2019-10-02T16:28:49.629+05:30 Running command: mkdir -p /etc/puppetlabs/puppet
2019-10-02T16:28:49.674+05:30 Running command: cp conf.d/global_hiera.yaml /etc/puppetlabs/puppet/hiera.yaml
2019-10-02T16:28:49.723+05:30 Running command: rpm --import /home/kiran/Downloads/puppet-enterprise-2019.1.1-el-7-x86_64/packages/GPG-KEY-puppet
2019-10-02T16:28:50.849+05:30 Running command: rpm --import /home/kiran/Downloads/puppet-enterprise-2019.1.1-el-7-x86_64/packages/GPG-KEY-puppet-2025-04-06
2019-10-02T16:28:51.311+05:30 Running command: mkdir -p /etc/yum.repos.d
2019-10-02T16:28:51.321+05:30 Running command: echo '[puppet_enterprise]' > /etc/yum.repos.d/puppet_enterprise.repo
2019-10-02T16:28:51.368+05:30 Running command: echo 'name=PuppetLabs PE Packages $releasever - $basearch' >> /etc/yum.repos.d/puppet_enterprise.repo
2019-10-02T16:28:51.399+05:30 Running command: echo 'baseurl=file:///opt/puppetlabs/server/data/packages/public/2019.1.1/puppet_enterprise' >> /etc/yum.repos.d/puppet_enterprise.repo
2019-10-02T16:28:51.431+05:30 Running command: echo 'enabled=1' >> /etc/yum.repos.d/puppet_enterprise.repo
2019-10-02T16:28:51.465+05:30 Running command: echo 'gpgcheck=1' >> /etc/yum.repos.d/puppet_enterprise.repo
2019-10-02T16:28:51.501+05:30 Running command: echo -e 'gpgkey=file:///opt/puppetlabs/server/data/packages/public/GPG-KEY-puppet-2025-04-06\n file:///opt/puppetlabs/server/data/packages/public/GPG-KEY-puppet' >> /etc/yum.repos.d/puppet_enterprise.repo
2019-10-02T16:28:51.688+05:30 Running command: yum clean all --disablerepo='*' --enablerepo=puppet_enterprise
Loaded plugins: fastestmirror, langpacks
Cleaning repos: puppet_enterprise
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
grep: : No such file or directory
2019-10-02T16:30:13.998+05:30 Running command: yum install -y puppet-agent-6.4.3 pe-installer pe-modules
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
* base: centos.mirrors.estointernet.in
* extras: centos.mirrors.estointernet.in
* updates: centos.mirrors.estointernet.in
Resolving Dependencies
--> Running transaction check
---> Package pe-installer.x86_64 0:2019.1.1.0-1.el7 will be installed
---> Package pe-modules.x86_64 0:2019.1.1.1-1.el7 will be installed
---> Package puppet-agent.x86_64 0:6.4.3-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
pe-installer x86_64 2019.1.1.0-1.el7 puppet_enterprise 36 M
pe-modules x86_64 2019.1.1.1-1.el7 puppet_enterprise 967 k
puppet-agent x86_64 6.4.3-1.el7 puppet_enterprise 22 M
Transaction Summary
================================================================================
Install 3 Packages
Total download size: 59 M
Installed size: 216 M
Downloading packages:
--------------------------------------------------------------------------------
Total 198 MB/s | 59 MB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : puppet-agent-6.4.3-1.el7.x86_64 1/3
warning: /etc/puppetlabs/puppet/hiera.yaml created as /etc/puppetlabs/puppet/hiera.yaml.rpmnew
Installing : pe-installer-2019.1.1.0-1.el7.x86_64 2/3
Installing : pe-modules-2019.1.1.1-1.el7.x86_64 3/3
Verifying : pe-installer-2019.1.1.0-1.el7.x86_64 1/3
Verifying : pe-modules-2019.1.1.1-1.el7.x86_64 2/3
Verifying : puppet-agent-6.4.3-1.el7.x86_64 3/3
Installed:
pe-installer.x86_64 0:2019.1.1.0-1.el7 pe-modules.x86_64 0:2019.1.1.1-1.el7
puppet-agent.x86_64 0:6.4.3-1.el7
Complete!
## We're preparing the Web Installer...
2019-10-02T16:33:22.443+05:30 Running command: mkdir -p /opt/puppetlabs/puppet/share/installer/installer
2019-10-02T16:33:22.538+05:30 Running command: cp -pR /home/kiran/Downloads/puppet-enterprise-2019.1.1-el-7-x86_64/* /opt/puppetlabs/puppet/share/installer/installer/
## Go to https://localhost.localdomain:3000 in your browser to continue installation.
## Be sure to use 'https://' and that port 3000 is reachable through the firewall.
2019-10-02T16:35:16.568+05:30 Running command: RACK_ENV=production /opt/puppetlabs/puppet/share/installer/vendor/bundler/bin/thin start --debug -p 3000 -a 0.0.0.0 --ssl --ssl-disable-verify &> /dev/null
uninistall PE
root@localhost Downloads]# cd puppet-enterprise-2019.1.1-el-7-x86_64/
[root@localhost puppet-enterprise-2019.1.1-el-7-x86_64]# ls
conf.d locales puppet-enterprise-uninstaller
LICENSE.txt packages README.markdown
links puppet-enterprise-installer VERSION
[root@localhost puppet-enterprise-2019.1.1-el-7-x86_64]# ./puppet-enterprise-uninstaller
================================================================================
================================================================================
Puppet Enterprise v2019.1.1 Uninstaller
Puppet Enterprise documentation can be found at http://puppetlabs.com/docs/pe/
?? Remove Puppet Enterprise database? [y/N] y
?? Purge all Puppet Enterprise configuration and files from system? [y/N] y
================================================================================
Options selected:
* Purge: Full uninstall
================================================================================
?? Uninstall Puppet Enterprise? [y/N] y
================================================================================
## Removing PE cronjobs...
## Stopping PE processes...
## Removing PE packages...
warning: /etc/puppetlabs/puppet/hiera.yaml saved as /etc/puppetlabs/puppet/hiera.yaml.rpmsave
## Removing PE users and groups...
Loaded plugins: fastestmirror, langpacks
Cleaning repos: puppet_enterprise
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Cleaning up list of fastest mirrors
## Removing PE directories and files...
## Removing PE database files...
## Removing PE symlinks...
================================================================================
In order to successfully reinstall the agent role on this node, you will need to remove its certificate from the Puppet master.
To do that, run "puppet cert clean <node name>" on the Puppet master.
================================================================================
## Done!
[root@localhost puppet-enterprise-2019.1.1-el-7-x86_64]# puppet cert clean
Comments
Post a Comment