Puppet: Difference between revisions

From Halfface
Jump to navigation Jump to search
No edit summary
 
(33 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Install heartbeat.
==Test run puppet==
yum install heartbeat.x86_64´
  puppet agent --test --debug --noop
 
==list certificate requests==
Create common mountpoint.
  puppet ca list
mkdir /install/heartbeat
==list certs==
 
  puppet cert list
change password for hacluster.
==remove cert==
passwd hacluster
  puppet cert clean host.domain.se
 
=remove cache directory=
alias gui="/usr/lib64/heartbeat/haclient.py"
  locate puppet/cache
  Command to start admin interface.
[[Category:Applications]]
 
[[Category:Unix]]
Search for GeneratingAuthkeysAutomatically__gen_authkeys.sh script to generate
[[Category:Automation]]
ls -ld /etc/ha.d/authkeys
 
transfer /etc/ha.d/authkeys to all hosts.
scp /etc/ha.d/authkeys beat:/etc/ha.d/authkeys
 
Working hacluster config file.
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility    local0
  auto_failback off
node    heart.halfface.se
  node    beat.halfface.se
apiauth ipfail gid=haclient uid=hacluster
crm yes
 
Working haresources
  heart.halfface.se       192.168.0.50
beat.halfface.se        192.168.0.60
 
Transfer file.
  scp heart:/etc/ha.d/haresources beat:/etc/ha.d/haresources
 
Start heartbeat.
chkconfig --level 345 heartbeat on
service heartbeat start

Latest revision as of 09:19, 7 October 2019

Test run puppet

puppet agent --test --debug --noop

list certificate requests

puppet ca list

list certs

puppet cert list 

remove cert

puppet cert clean host.domain.se

remove cache directory

locate puppet/cache