Skip to content

Commit

Permalink
restrict node access
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed May 8, 2013
1 parent 697eaec commit 4879bbb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,16 @@ Vagrant.configure("2") do |config|
echo
else
echo '[agent]' >> /etc/puppet/puppet.conf
echo 'classfile = $vardir/classes.txt' >> /etc/puppet/puppet.conf
echo 'localconfig = $vardir/localconfig' >> /etc/puppet/puppet.conf
echo 'report = true' >> /etc/puppet/puppet.conf
echo 'pluginsync = true' >> /etc/puppet/puppet.conf
echo 'masterport = 8140' >> /etc/puppet/puppet.conf
echo 'environment = production' >> /etc/puppet/puppet.conf
echo 'server = kalabox.kalamuna.com' >> /etc/puppet/puppet.conf
echo 'listen = false' >> /etc/puppet/puppet.conf
echo 'certname = kala.'$KALAUUID'.f04083c46d392c7c7276a3570a96d095.box' >> /etc/puppet/puppet.conf
echo 'classfile = $vardir/classes.txt' >> /etc/puppet/puppet.conf
echo 'localconfig = $vardir/localconfig' >> /etc/puppet/puppet.conf
echo 'report = true' >> /etc/puppet/puppet.conf
echo 'pluginsync = true' >> /etc/puppet/puppet.conf
echo 'masterport = 8140' >> /etc/puppet/puppet.conf
echo 'environment = production' >> /etc/puppet/puppet.conf
echo 'server = kalabox.kalamuna.com' >> /etc/puppet/puppet.conf
echo 'listen = false' >> /etc/puppet/puppet.conf
echo 'certname = kala.'$KALAUUID'.f04083c46d392c7c7276a3570a96d095.box' >> /etc/puppet/puppet.conf
echo 'node_name_value = kala.'$KALAUUID'.f04083c46d392c7c7276a3570a96d095.box' >> /etc/puppet/puppet.conf
service puppet restart -y
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion manifests/site.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* to the puppetmaster at kalabox.kalamuna.com
*/

node "default" {
node /^kala\..*\.f04083c46d392c7c7276a3570a96d095\.box$/ {
# initialize core packages
include git
include unzip
Expand Down

0 comments on commit 4879bbb

Please sign in to comment.