Difference: UCLHCAdminDoc (1 vs. 6)

Revision 62018/04/07 - Main.JeffreyDost

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Admin Documentation

Line: 83 to 83
 

Upgrade OSG Version

Changed:
<
<
  1. (all bricks) Do a yum update as described above
  2. (all bricks) Turn off puppet agents: service puppet stop
  3. (uclhcpup) Bump hiera osg version and optionally condor and gwms in /etc/puppetlabs/code/environments/production/hieradata/global.yaml:
    
    
>
>
  1. (brick) Do a yum update as described above
  2. (brick) Turn off puppet agent: service puppet stop
  3. (uclhcpup) Bump hiera osg version and optionally condor and gwms in the relevant node yaml file in /etc/puppetlabs/code/environments/production/hieradata/nodes:
    
    
 osg_repos::release: x condor::condor_version: y condor::gwms_version: z
Changed:
<
<
  1. (all bricks) puppet agent --test errors are harmless, this is just to get the latest osg-release
  2. (all bricks) yum clean all
  3. (all bricks) puppet agent --test a second time
  4. (all bricks) Do a second yum update as described above
  5. (all bricks) Turn on puppet agent: service puppet start
>
>
  1. (brick) puppet agent --test errors are harmless, this is just to get the latest osg-release
  2. (brick) yum clean all
  3. (brick) puppet agent --test a second time
  4. (brick) Do a second yum update as described above
  5. (brick) Turn on puppet agent: service puppet start
  -- JeffreyDost - 2016/02/09

Revision 52018/04/06 - Main.JeffreyDost

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Admin Documentation

Line: 45 to 45
 puppet cert sign hostname
Changed:
<
<
Create relevant yaml in /etc/puppet/hiera/nodes/
>
>
Create relevant yaml in /etc/puppetlabs/code/environments/production/hieradata/nodes/
 
Changed:
<
<
Generate a node specific ssh auth keys file from /etc/puppet/environments/production/modules/uclhc-admin/files/root.ssh
>
>
Generate a node specific ssh auth keys file from /etc/puppetlabs/code/environments/production/modules/uclhc_admin/files/root.ssh
 
Changed:
<
<
Ensure host certs are copied and named appropriately into /etc/puppet/environments/production/modules/host_cert/files/ and check permissions
>
>
Ensure host certs are copied and named appropriately into /etc/puppetlabs/code/environments/production/modules/host_cert/files/ and check permissions
 
Line: 67 to 67
 
yum update --exclude=condor* --exclude=glideinwms* 
Changed:
<
<

Upgrade OSG Version

>
>

GIT Change Management

 
Changed:
<
<
  1. (all bricks) Do a yum update as described above
  2. (all bricks) Turn off puppet agents: service puppet stop
  3. (uclhcpup) Merge dev to master:
>
>
UCLHC puppet modules are hosted at: https://github.com/jdost321/uclhc-puppet

The master branch corresponds to the production puppet environment, and is cloned at /etc/uclhc-puppet/production. The development branch corresponds to the development puppet environment and is cloned at /etc/uclhc-puppet/development. Changes should be made in /etc/uclhc-puppet/development and tested on the uclhctest.t2.ucsd.edu host before pushed to production.

Assuming changes are committed and pushed back to github from development, the following steps merge the changes to production:

 cd /etc/uclhc-puppet/production git fetch git merge origin/development git push
Changed:
<
<
  1. (uclhcpup) Bump hiera osg version and optionally condor and gwms in /etc/puppet/hiera/global.yaml:
    
    
>
>

Upgrade OSG Version

  1. (all bricks) Do a yum update as described above
  2. (all bricks) Turn off puppet agents: service puppet stop
  3. (uclhcpup) Bump hiera osg version and optionally condor and gwms in /etc/puppetlabs/code/environments/production/hieradata/global.yaml:
    
    
 osg_repos::release: x condor::condor_version: y condor::gwms_version: z

Revision 42017/11/07 - Main.JeffreyDost

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Admin Documentation

Line: 6 to 6
 

Puppetize brick

Changed:
<
<
Open firewall in uclhcpup; see /etc/sysconfig/iptables
>
>
Open firewall in uclhcpup for ports 8140, 8443, 443; see /etc/firewalld/zones/public.xml
 
rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm

Revision 32016/03/29 - Main.JeffreyDost

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Admin Documentation

Line: 35 to 35
 

Start puppet:

Changed:
<
<
puppet resource service ensure=running enable=true
>
>
puppet resource service puppet ensure=running enable=true
  On uclhcpup:

Revision 22016/03/28 - Main.JeffreyDost

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Admin Documentation

Added:
>
>

Puppetize brick

Open firewall in uclhcpup; see /etc/sysconfig/iptables

rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm

yum install puppet

Modify /etc/puppet/puppet.conf and fill in the relevant hostname:

[main]
vardir = /var/lib/puppet
logdir = /var/log/puppet
rundir = /var/run/puppet
ssldir = $vardir/ssl


[agent]
pluginsync      = true
report          = true  
ignoreschedules = true
daemon          = false
ca_server       = uclhcpup.t2.ucsd.edu
certname        = hostname
environment     = production
server          = uclhcpup.t2.ucsd.edu
configtimeout   = 10m

Start puppet:

puppet resource service ensure=running enable=true

On uclhcpup:

Look for and sign hostname:

puppet cert list
puppet cert sign hostname

Create relevant yaml in /etc/puppet/hiera/nodes/

Generate a node specific ssh auth keys file from /etc/puppet/environments/production/modules/uclhc-admin/files/root.ssh

Ensure host certs are copied and named appropriately into /etc/puppet/environments/production/modules/host_cert/files/ and check permissions

In foreman, assign relevant host group (UCLHC/ATLAS / UCLHC/CMS):
hosts -> click host -> edit -> hostgroup pulldown

click submit.

To apply classes immediately, run:

puppet agent --test
 

Brick Yum Update

We pin some packages to specific version numbers and only upgrade through puppet, these should be excluded in a normal yum update:

Revision 12016/02/10 - Main.JeffreyDost

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WebHome"

Admin Documentation

Brick Yum Update

We pin some packages to specific version numbers and only upgrade through puppet, these should be excluded in a normal yum update:

yum update --exclude=condor* --exclude=glideinwms* 

Upgrade OSG Version

  1. (all bricks) Do a yum update as described above
  2. (all bricks) Turn off puppet agents: service puppet stop
  3. (uclhcpup) Merge dev to master:
    cd /etc/uclhc-puppet/production
    git fetch
    git merge origin/development
    git push
  4. (uclhcpup) Bump hiera osg version and optionally condor and gwms in /etc/puppet/hiera/global.yaml:
    osg_repos::release: x
    condor::condor_version: y
    condor::gwms_version: z
    
  5. (all bricks) puppet agent --test errors are harmless, this is just to get the latest osg-release
  6. (all bricks) yum clean all
  7. (all bricks) puppet agent --test a second time
  8. (all bricks) Do a second yum update as described above
  9. (all bricks) Turn on puppet agent: service puppet start

-- JeffreyDost - 2016/02/09

 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback