Monday, June 28, 2021

RHEL7 - Puppet agent update

 Puppet agent update from 6.22 to 6.23

1. Repo clean
$ ansible -i host-list all -a "yum clean all" -b -K

2. Install/update package
$ ansible -i host-list all -m yum -a "name=puppet-agent-6.23.0-1.el17.x86_64 state=present" -b -K

3. Verify
$ ansible 0i host-list all -o -a "rpm -q puppet-agent" | sort

4. Run aide audit
$ ansible -i host-list all -a "aide --init" -b -K

5. Verify file is created
$ ansible -i host-list all -o -a "ls -l /var/lib/aide/aide.db.new.gz" -b -K | sort

6. Copy new file and overwrite the old one.
$ ansible -i host-list all -a "cp -av /var/lib/aide/aide.db.new.gz /var/lib/aide.db.gz"

Verify
$ ansible -i host-list all -o -a "rpm -q puppet-agent" | sort

No comments:

Post a Comment

Git branch show detached HEAD

  Git branch show detached HEAD 1. List your branch $ git branch * (HEAD detached at f219e03)   00 2. Run re-set hard $ git reset --hard 3. ...