Wednesday, 25 November 2015
Puppet Error: Error 400 on SERVER: Error from DataBinding 'hiera' while looking up 'puppet_enterprise::certificate_authority_port': (): could not found expected ':'
If you get this Puppet error (when running puppet agent -t on your client):
Error 400 on SERVER: Error from DataBinding 'hiera' while looking up 'puppet_enterprise::certificate_authority_port': (): could not found expected ':'
It means that there is a syntax error in you hiera yaml file.
Friday, 20 November 2015
How to extend root partition in LVM
Follow these instructions!
https://rbgeek.wordpress.com/2013/01/27/how-to-extend-the-root-partition-in-lvm/
Wednesday, 18 November 2015
Fix grub boot loader - Debian 7
Boot from CDROM, choose Rescue Mode and Advanced options.
When prompted, request a shell on the root partition
With the grub tools (apt-get install grub if tools are missing):
grub-mkdevicemap grub-install /dev/sda update-grubReboot
Thursday, 12 November 2015
Start service at boot (autostart) - CentOS 6
chkconf is the command, for example auto start Apache at boot:
chkconfig httpd on
Wednesday, 11 November 2015
Fixing deleted /var/run link and restoring SELinux permissions - CentOS 7
So some idiot with sudo permissions deleted the symlink /var/run. To restore it, log on to another system and find out the permissions of this link:
# ls -ld /var/run lrwxrwxrwx. 1 root root 6 Feb 25 2015 /var/run -> ../run # ls -Z /var/run lrwxrwxrwx. root root system_u:object_r:var_run_t:s0 /var/run -> ../run #Log on to broken system as root and do the following:
# cd /var # ln -s ../run run # chcon -h system_u:object_r:var_run_t:s0 run # ls -Z run lrwxrwxrwx. root root system_u:object_r:var_run_t:s0 /var/run -> ../run
Monday, 26 October 2015
Kerberos Keytab Error - CentOS 6
Oct 22 21:10:38 server sshd[52210]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=server.domain.com user=st14988 Oct 22 21:10:38 server sshd[52210]: pam_krb5[52210]: error reading keytab 'FILE:/etc/krb5.keytab' Oct 22 21:10:38 server sshd[52210]: pam_krb5[52210]: TGT verified Oct 22 21:10:38 server sshd[52210]: pam_krb5[52210]: authentication succeeds for 'abc' (abc@server.domain.com) Oct 22 21:10:38 server sshd[52210]: pam_unix(sshd:session): session opened for user abc by (uid=0)To disable keytab validation and hence suppress these log messages, add the no_validate option to your PAM settings.
auth sufficient pam_krb5.so use_first_pass no_validateOn my CentOS 6 servers, these are in the following files:
/etc/pam.d/password-auth-ac /etc/pam.d/system-auth-ac
Friday, 25 September 2015
RedHat Channel Subscription
To list all available channels:
[root@ ~]# rhn-channel -L --user=rhn_user --password=rhn_passwordTo subscribe to a channel (e.g. options):
[root@ ~]# rhn-channel --add --channel=rhel-x86_64-server-optional-6 --user=rhn_user --password=rhn_passwordTo list channel subscribed:
[root@ ~]# rhn-channel -l rhel-x86_64-server-6 rhel-x86_64-server-optional-6To register to RHN (do this first!): To register and subscribe in one step:
[root@ ~]# subscription-manager register --usernameThis is the old way or using a satellite server:--password --auto-attach
[root@ ~]# rhn_register
Subscribe to:
Posts (Atom)