-
Notifications
You must be signed in to change notification settings - Fork 1
Deploying Puppet scripts to a new server
After UCIT has created a new server, the following steps must be completed manually before deploying the Puppet scripts.
-
Get the latest updates:
sudo yum update
-
Install packages needed my Puppet:
sudo yum install openssl-devel zlib-devel gcc gcc-c++ git
-
Install ruby:
wget http://digital.libraries.uc.edu/puppet/scholar/ruby-2.4.1.tar.gz
tar -xzf ruby-2.4.1.tar.gz
cd ruby
./configure --prefix=/usr make sudo /usr/bin/make install ruby -v -
Install Puppet: cd ~ sudo gem install puppet -v 4.5.3 puppet --version
-
Relax restrictions for using sudo: sudo chmod u+w /etc/sudoers sudo vim /etc/sudoers (comment out this line: Defaults requiretty) sudo chmod u-w /etc/sudoers
-
Stop and disable the firewall service: sudo systemctl stop firewalld.service sudo systemctl disable firewalld.service
-
Set SELinux to permissive mode sudo vim /etc/selinux/config
- SELINUX=permissive
- reboot server
-
Add the server's hostname to the hosts files Add hostname to end of ipv4 and ipv6 lines of /etc/hosts
-
Configure Postfix Configure postfix
- Edit /etc/postfix/main.cf: inet_protocols = ipv4
- sudo systemctl start postfix.service
- create users Manually create tomcat and scholar users with correct UID and GID
- sudo useradd -u 498 tomcat
- sudo groupadd -g 500 tomcat
- Reboot