Continue with my previous post - Build Foreman as Puppet ENC. Now it's the time to integrate the Puppet to Foreman. On the foreman server (foreman.mylab.local): 1) Add the puppet smart proxy 2) Import the environments via the smart proxy On puppet master (puppet.mylab.local): 1) Create the two executable ruby scripts to push/pull facts to/from foreman: … Continue reading Integrate Puppet to Foreman
Tag: Puppet
Puppet push SSH key
The passwordless SSH worked well in my lab. Here is the how to:1) Let the user generate the key pair, then copy the .pub file to the modules/sys_key/files folder and name it after the user's name.2) Copy /etc/skel/.bashrc and .bash_profile to modules/sys_key/files folder.3) Create the the manifests files in module/sys_key/manifests. It can be download from … Continue reading Puppet push SSH key
Puppet push LDAP authentiation
Continue with my previous post of How to set up LDAP authentication in CentOS, I have made the Puppet be able to push it in my lab. Here is how it looks:The manifest file and files can be downloaded from here.class sys_ldap {package { 'openldap': ensure => installed, }package { 'openldap-clients': ensure => installed, require … Continue reading Puppet push LDAP authentiation
Set up foreman and foreman-proxy in CentOS
In my lab, I use 32 bits CentOS 6.5. So I need to use foreman 1.1 which I guess is the last version that supports 32 bits.1) Check wether the EPEL repostitory has been added by running 'yum repolist'. If it has not been installed, it can be found at http://dl.fedoraproject.org/pub/epel/62) Install the foreman 1.1 … Continue reading Set up foreman and foreman-proxy in CentOS
Puppet for Windows: Remote Execution
In this example, I am going to use Puppet to: - Create a Windows user and add it to the RDP group. - Add Web Server role. - Install McAfee VSE8.8. Before Following things need to done: 1) Install the Puppet agent in Windows, detailed instruction can be found here. 2) Create a batch script … Continue reading Puppet for Windows: Remote Execution