This file contains 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
# Rake wrapper around Vagrant. | |
# | |
# The intended usage is as follows | |
# $ rake vagrant:init[<branch_name>] | |
# | |
# This will create a vagrant instance named <branch_name>. It will also | |
# ensure that the puppet-deploy tree is on the same branch and that Puppet | |
# librarian has been run. | |
# | |
# TODO |
This file contains 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
# Rake wrapper around Vagrant. | |
# | |
# The intended usage is as follows | |
# $ rake vagrant:init[<branch_name>] | |
# | |
# This will create a vagrant instance named <branch_name>. It will also | |
# ensure that the puppet-deploy tree is on the same branch and that Puppet | |
# librarian has been run. | |
# | |
# TODO |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# | |
$vg_role = ENV['VG_ROLE'] || "hubspot::roles::role_basenode" | |
$vg_profile = ENV['VG_PROFILE'] || '' | |
$inst_home = ENV['VG_INST_HOME'] || File.dirname(__FILE__) | |
$inst_name = ENV['VG_INST_NAME'] || $inst_home.split(File::SEPARATOR)[-1] | |
$vm_box = ENV['VG_VM_BOX'] || "CentOS-6.5-x86_64-201407100058" | |
$hostname = ENV['VG_HOSTNAME'] || "%s.hubspot.local" % $inst_name |
This file contains 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
Vagrant.configure('2') do |config| | |
config.vm.define "nginx-lb", primary: true do |nginx| | |
nginx.vm.hostname = 'lb.hubspot.local' | |
nginx.vm.provision :puppet_server, id: 'default_puppet_server' do |p| | |
p.puppet_server = "puppetmaster.hubspot.local" | |
p.options = "--verbose --waitforcert 120" | |
p.facter = { 'role' => 'hubspot::roles::puppet::role_puppetmaster', | |
'hs_lb_type' => $hs_lb_type, | |
'hs_server_names' => $hs_server_names |
This file contains 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
[root@c6 ~]# fdisk -lu mnt/images/aws-paravirt/CentOS-6.5-x86_64-1410576856-paravirt.img | |
You must set cylinders. | |
You can do this from the extra functions menu. | |
Disk mnt/images/aws-paravirt/CentOS-6.5-x86_64-1410576856-paravirt.img: 0 MB, 0 bytes | |
255 heads, 63 sectors/track, 0 cylinders, total 0 sectors | |
Units = sectors of 1 * 512 = 512 bytes | |
Sector size (logical/physical): 512 bytes / 512 bytes | |
I/O size (minimum/optimal): 512 bytes / 512 bytes | |
Disk identifier: 0x0002d42f |
This file contains 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
"builders": | |
[ | |
{ | |
"type" : "virtualbox-iso", | |
"boot_command": | |
[ | |
"<esc>", | |
" linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks/centos65.ks", | |
"<enter>", |
This file contains 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
"provisioners": | |
[ | |
{ | |
"type" : "shell", | |
"environment_vars" : | |
[ | |
"os_name=CentOS", | |
"os_version=6.5" | |
], |
This file contains 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
"post-processors": | |
[ | |
{ | |
"type" : "vagrant", | |
"output" : "centos65.box" | |
} | |
] | |
This file contains 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
/etc/puppet/csr_attributes.yaml: | |
--- | |
extension_requests: | |
pp_preshared_key: PUPPET_PSK | |
Puppet output: | |
Info: Creating a new SSL key for puppet.hubspot.local | |
Info: Caching certificate for ca | |
Info: csr_attributes file loading from /etc/puppet/csr_attributes.yaml |
OlderNewer