Skip to content

Deploying Puppet scripts to a new server

Glen Horton edited this page Oct 24, 2017 · 23 revisions

After UCIT has created a new server, the following steps must be completed manually before deploying the Puppet scripts.

  1. Get the latest updates:
    sudo yum update

  2. Install packages needed my Puppet:
    sudo yum install openssl-devel zlib-devel gcc gcc-c++ git

  3. 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

  4. Install Puppet: cd ~ sudo gem install puppet -v 4.5.3 puppet --version

  5. 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

  6. Stop and disable the firewall service: sudo systemctl stop firewalld.service sudo systemctl disable firewalld.service

  7. Set SELinux to permissive mode sudo vim /etc/selinux/config

  • SELINUX=permissive
  • reboot server
  1. Add the server's hostname to the hosts files Add hostname to end of ipv4 and ipv6 lines of /etc/hosts

  2. Configure Postfix Configure postfix

  • Edit /etc/postfix/main.cf: inet_protocols = ipv4
  • sudo systemctl start postfix.service
  1. create users Manually create tomcat and scholar users with correct UID and GID
  • sudo useradd -u 498 tomcat
  • sudo groupadd -g 500 tomcat
  1. Reboot
Clone this wiki locally