Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rcmdnk/frontiersquid-puppet

Puppet settings for Frontier Squid server
https://github.com/rcmdnk/frontiersquid-puppet

Last synced: about 1 month ago
JSON representation

Puppet settings for Frontier Squid server

Awesome Lists containing this project

README

        

# frontiersquid-puppet
Puppet settings for Frontier Squid server, especially for CVMFS, Condition Database.

## Environments

These puppet settings are for:

* Puppet 5

## HOSTNAME

The host name should be `*squid*`, `*cvmfs-px*` or `*conddb-px*`, otherwise update
**etc/puppetlabs/code/environments/production/manifests/site.pp** as you like.

## Region

The default region is **asia-northeast1**.
`acl NET_LOCAL src `is set to `10.146.0.0/20`.
Check [VCP Network Grid Test - Google Cloud Platform](https://console.cloud.google.com/networking/networks/list)
and update this value as you like.

## Setup

Install puppet and files by:

# ./setup.sh

To apply manifests, do:

# /opt/puppetlabs/bin/puppet apply /etc/puppetlabs/code/environments/production/manifests/site.pp --verbose

## Server/Agent

If you setup puppet server, do

# ./setup.sh -s

otherwise, do:

# ./setup.sh

To apply local manifests, do:

# /opt/puppetlabs/bin/puppet apply /etc/puppetlabs/code/environments/production/manifests/site.pp --verbose

If you want to use server's settings in other machines, install puppet:

# rpm -Uvh https://yum.puppetlabs.com/puppet5/puppet5-release-el-7.noarch.rpm
# yum install -y puppet-agent

and apply server's manifests. First do at client:

# /opt/puppetlabs/bin/puppet agent --test --server

Then, go server, and do:

# /opt/puppetlabs/bin/puppet cert sign

Now you can install by using same command above at client:

# /opt/puppetlabs/bin/puppet agent --test --server

or add followings in **/etc/puppetlabs/puppet/puppet.conf** to identify server:

[main]
certname =
server =
environment = production
runinterval = 1h

and do

# /opt/puppetlabs/bin/puppet agent --test