Skip to content

Commit

Permalink
Add githubhooks to puppet server
Browse files Browse the repository at this point in the history
  • Loading branch information
danfoster committed Oct 28, 2014
1 parent 46c5030 commit e23545d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/acrc_puppet/files/githubhooks
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"repos": {
"ACRC/puppet": {
"refs/heads/master": {
"action": "gitpull",
"repodir": "/etc/puppet/environments/acrc_staging"
}
}
},
"secret": "N&4H3oBCg%nL9l%C"
}
16 changes: 16 additions & 0 deletions modules/acrc_puppet/manifests/master.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,20 @@
ensure => file,
source => 'puppet:///modules/acrc_puppet/hiera.yaml',
}

package { 'githubhooks':
ensure => 'present',
}

file { '/etc/githubhooks':
ensure => file,
source => 'puppet:///modules/acrc_puppet/githubhooks',
}


firewall { '050 accept githubhooks':
port => 5000,
proto => tcp,
action => accept,
}
}

0 comments on commit e23545d

Please sign in to comment.