Skip to content

Instantly share code, notes, and snippets.

# PostgreSQL Client Authentication Configuration File
# ===================================================
#
# Refer to the "Client Authentication" section in the PostgreSQL
# documentation for a complete description of this file. A short
# synopsis follows.
#
# This file controls: which hosts are allowed to connect, how clients
# are authenticated, which PostgreSQL user names they can use, which
# databases they can access. Records take one of these forms:
HOSTS:
centos7.vm:
roles:
- master
- agent
- database
- dashboard
- classifier
platform: el-7-x86_64
vmname: centos7.vm
@lucywyman
lucywyman / init.json
Created October 16, 2017 20:48
Create containers task
{
"description": "POC for creating container in a task",
"parameters": {
"container_name": {
"description": "Optional name for the container",
"type": "Optional[ String ]"
},
"dockerfile_path": {
"description": "Path to Dockerfile",
"type": "Optional[ String ]"
directory_root = File.expand_path(File.dirname(options_file_path))
{
:load_path => "#{File.join(directory_root, 'helpers')},#{File.join(directory_root,'console_pages','lib')}",
:browser => :chrome, # :chrome, :firefox, :internet_explorer
:run_on => :sauce, # local_machine, :puppet_grid, :sauce
:pre_suite => [File.join(directory_root, 'setup', 'pre-suite', '01_install_pe.rb'),
File.join(directory_root, 'setup', 'pre-suite', '06_cfg_mgmt_init.rb'),
File.join(directory_root, 'setup', 'pre-suite', '07_add_modules_used_in_test.rb'),
File.join(directory_root, 'setup', 'pre-suite', '08_run_puppet.rb'),
File.join(directory_root, 'setup', 'pre-suite', '09_run_puppet_jobs.rb'),
HOSTS:
rhel7_master_and_agent:
roles:
- master
- agent
- database
- dashboard
- classifier
platform: el-7-x86_64
hypervisor: vcloud
Vagrant.configure("2") do |config|
config.vm.define "puppetmaster" do |master|
master.vm.box = "ubuntu/xenial64"
master.vm.hostname = "lucy-puppet-master.delivery.puppetlabs.net"
master.vm.network :"private_network", ip: "192.168.33.10"
master.vm.provision :hosts, :sync_hosts => true
master.vm.provision "shell", path: "puppet-master-install.sh"
master.vm.network "forwarded_port", guest: 443, host:4443
master.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "4096"]
Vagrant.configure(2) do |config|
config.vm.define :centos7 do |centos7_config|
centos7_config.vm.box = "centos/7"
centos7_config.vm.network :public_network
centos7_config.vm.hostname = "puppet-agent.local"
end
end
require 'sinatra'
require 'octokit'
require 'git'
require 'json'
require 'fileutils'
require 'sinatra/base'
require_relative 'helpers/helpers.rb'
class Kukla < Sinatra::Base
helpers Sinatra::Kukla::Helpers
[root@fp8clrqfm0yasc0 ~]# openssl x509 -text -in /etc/puppetlabs/puppet/ssl/certs/ca.pem -noout
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 1 (0x1)
Signature Algorithm: sha256WithRSAEncryption
Issuer: CN=Puppet Enterprise CA
Validity
Not Before: Aug 29 17:47:18 2017 GMT
Not After : Aug 29 17:47:18 2022 GMT
(defn deploy-info
[url]
{:url url
:username :env/nexus_jenkins_username
:password :env/nexus_jenkins_password
:sign-releases false})
(defproject puppetlabs/orchestrator "0.10.23-SNAPSHOT"
:description "A tool for deploying services and applications across n nodes"
:url "https://github.com/puppetlabs/orchestrator"