This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # logging | |
| errorlog: /var/log/sockd.errlog | |
| logoutput: /var/log/sockd.log | |
| #debug: 2 | |
| # server address specification | |
| internal: 0.0.0.0 port = 8001 | |
| external: eth0 | |
| # server identities (not needed on solaris) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [main] | |
| logdir=/var/log/puppet | |
| vardir=/var/lib/puppet | |
| ssldir=/var/lib/puppet/ssl | |
| rundir=/var/run/puppet | |
| factpath=$vardir/lib/facter | |
| #templatedir=$confdir/templates | |
| [agent] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [main] | |
| logdir=/var/log/puppet | |
| vardir=/var/lib/puppet | |
| ssldir=/var/lib/puppet/ssl | |
| rundir=/var/run/puppet | |
| factpath=$vardir/lib/facter | |
| #templatedir=$confdir/templates | |
| certname = puppet | |
| dns_alt_names = puppet,puppet.sbose.in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: danted | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: SOCKS (v4 and v5) proxy daemon (danted) | |
| ### END INIT INFO | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class danted { | |
| exec { 'install-dev-tools': # exec resource named 'apt-update' | |
| command => '/usr/bin/apt-get -y install build-essential ' # command this resource will run | |
| } | |
| exec{'retrieve_danted_binary': | |
| command => "/usr/bin/wget -q https://www.inet.no/dante/files/dante-1.4.1.tar.gz -O /tmp/danted.tar.gz", | |
| creates => "/tmp/danted.tar.gz", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get -y update && sudo apt-get -y install ntp | |
| sudo service ntp restart | |
| cd ~; wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb | |
| sudo dpkg -i puppetlabs-release-trusty.deb | |
| sudo apt-get -y update ; sudo apt-get -y install puppet | |
| #sudo service apache2 stop | |
| sudo touch /etc/default/puppet | |
| sudo echo "START=yes" >> /etc/default/puppet | |
| sudo service puppet stop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [main] | |
| logdir=/var/log/puppet | |
| vardir=/var/lib/puppet | |
| ssldir=/var/lib/puppet/ssl | |
| rundir=/var/run/puppet | |
| factpath=$vardir/lib/facter | |
| [agent] | |
| server = puppet.sbose.in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install ntp to keep time sync'd | |
| sudo ntpdate pool.ntp.org | |
| sudo apt-get update && sudo apt-get -y install ntp | |
| # Install the puppetlabs package | |
| cd ~; wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb | |
| sudo dpkg -i puppetlabs-release-trusty.deb | |
| sudo apt-get update | |
| # Install the puppet master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| No Zip install - Create data dir using option file | |
| .\mysqld.exe --defaults-file=..\my-default.ini --initialize-insecure | |
| Starting MySQL: | |
| .\mysqld.exe --defaults-file=..\my-default.ini --console | |
| Open MySQLWorkBench and login as root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.shortcuts import render | |
| # Create your views here. | |
| from django.http import HttpResponse | |
| import os | |
| import sys | |
| import datetime | |
| from mysite.settings import logger , SITE_ROOT |