Skip to content

Instantly share code, notes, and snippets.

View crayfishx's full-sized avatar

Craig Dunn crayfishx

View GitHub Profile
# Apache HTTP configuration file
# THIS FILE IS MANAGED BY PUPPET.
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
ServerRoot "/etc/httpd"
Listen 80
Include conf.modules.d/*.conf
User apache
Group apache
ServerAdmin root@localhost
<Directory />
##### On the PuppetCA - clean the new masters cert....
[root@puppetca /]# puppet cert clean b3b0d92345fb
Notice: Revoked certificate with serial 13
Notice: Removing file Puppet::SSL::Certificate b3b0d92345fb at '/etc/puppetlabs/puppet/ssl/ca/signed/b3b0d92345fb.pem'
Notice: Removing file Puppet::SSL::Certificate b3b0d92345fb at '/etc/puppetlabs/puppet/ssl/certs/b3b0d92345fb.pem'
##### On the new master, verify puppet.conf has ca_server and ca
environmentpath = /etc/puppetlabs/code/environments
ca_server = puppetca

Keybase proof

I hereby claim:

  • I am crayfishx on github.
  • I am crayfishx (https://keybase.io/crayfishx) on keybase.
  • I have a public key whose fingerprint is D089 0360 D0B9 AAAD 9EDE 342F 9CCB 513E 77F4 A441

To claim this, I am signing this object:

$ cat hieradata/common.yaml
---
dbmaster:
- mysql::server
mysql::server::package_name: 'mysql-server'
mysql::server::package_ensure: '5.7.13-1debian7'
# check if the oracle software already exists
$found = oracle_exists( $oracle_home )
if $found == undef {
$continue = true
....
firewalld::ports:
my_service:
port: 5666
protocol: tcp
my_other_service:
port: 5667
protocol: tcp
## foo.pp
$bar=undef
$foo=undef
$content=template('/tmp/foo.erb')
notify { "content is ${content}": }
## foo.erb
[15:21:07] <duckduckgeek> Hiya everyone!
[15:21:22] dlitvak_ (~dlitvak@181.229.5.89) left IRC (Ping timeout: 252 seconds)
[15:21:37] <duckduckgeek> would anyone be willing to look at a code sample and help me figure out whats wrong with my program?
[15:21:47] Yzguy (~Yzguy@c-73-200-0-199.hsd1.md.comcast.net) joined the channel
[15:21:57] <duckduckgeek> it seems to be a very simple problem but i just can't figure it out
[15:22:30] <ljarvis> duckduckgeek: please just ask your question and provide code, everyone will see it and you'll increase the chances someone will be able to help
[15:22:40] <ljarvis> basically, don't ask to ask
$ vagrant box add puppetlabs/centos-7.0-64-nocm --provider vmware_fusion
==> box: Loading metadata for box 'puppetlabs/centos-7.0-64-nocm'
box: URL: https://vagrantcloud.com/puppetlabs/centos-7.0-64-nocm
==> box: Adding box 'puppetlabs/centos-7.0-64-nocm' (v1.0.2) for provider: vmware_fusion
box: Downloading: https://atlas.hashicorp.com/puppetlabs/boxes/centos-7.0-64-nocm/versions/1.0.2/providers/vmware_fusion.box
The box you attempted to add doesn't match the provider you specified.
Provider expected: vmware_fusion
Provider of box: vmware_desktop