Skip to content

Commit

Permalink
minor changes to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
portertech committed Apr 11, 2012
1 parent 52efaf5 commit 3bc370f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Vagrant::Config.run do |config|
config.vm.box = "lucid32"
config.vm.host_name = 'mongo'
config.vm.share_folder "mongodb", "/tmp/vagrant-puppet/modules/mongodb", "."
# config.vm.network :hostonly, "192.168.31.48"
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "tests"
puppet.manifest_file = "vagrant.pp"
Expand Down
8 changes: 3 additions & 5 deletions tests/vagrant.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,17 @@
}
}

# The mongodb module requires python-software-packages, which can't be found
# on the Vagrant lucid32 image unless you run apt-get update first.
# Run apt-get update prior to testing
class { 'apt_get_update':
stage => pre,
}

# The Vagrant lucid32 image doesn't create the 'puppet' group, and can't
# properly finish a run without it.
# Ensure the Vagrant image has a 'puppet' user group for testing
group { 'puppet':
ensure => "present",
}

# Finally, we test our module:
# Finally, we test our module
class { 'mongodb':
# replSet => "set",
ulimit_nofile => 20000,
Expand Down

0 comments on commit 3bc370f

Please sign in to comment.