Skip to content

Instantly share code, notes, and snippets.

@kitplummer
Created February 9, 2015 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kitplummer/1b8c3de89a99d23e0d30 to your computer and use it in GitHub Desktop.
Save kitplummer/1b8c3de89a99d23e0d30 to your computer and use it in GitHub Desktop.
➜ harry_packer git:(master) ✗ packer build -only=null harry_build.json
null output will be in this color.
==> null: Waiting for SSH to become available...
==> null: Connected to SSH!
==> null: Provisioning with shell script: scripts/puppet.sh
null: sleep: invalid time interval ‘30,’
null: Try 'sleep --help' for more information.
null: --2015-02-09 17:25:36-- http://apt.puppetlabs.com/puppetlabs-release-raring.deb
null: Resolving apt.puppetlabs.com (apt.puppetlabs.com)... 198.58.114.168, 2600:3c00::f03c:91ff:fe69:6bf0
null: Connecting to apt.puppetlabs.com (apt.puppetlabs.com)|198.58.114.168|:80... connected.
null: HTTP request sent, awaiting response... 404 Not Found
null: 2015-02-09 17:25:36 ERROR 404: Not Found.
null:
null: dpkg: error processing archive puppetlabs-release-precise.deb (--install):
null: cannot access archive: No such file or directory
null: Errors were encountered while processing:
null: puppetlabs-release-precise.deb
null: Ign http://archive.ubuntu.com trusty InRelease
null: Ign http://archive.ubuntu.com trusty-updates InRelease
null: Ign http://security.ubuntu.com trusty-security InRelease
null: Hit http://archive.ubuntu.com trusty Release.gpg
null: Get:1 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
null: Get:2 http://security.ubuntu.com trusty-security Release.gpg [933 B]
null: Hit http://archive.ubuntu.com trusty Release
null: Get:3 http://security.ubuntu.com trusty-security Release [62.0 kB]
null: Get:4 http://archive.ubuntu.com trusty-updates Release [62.0 kB]
null: Get:5 http://archive.ubuntu.com trusty/main Sources [1,064 kB]
null: Get:6 http://security.ubuntu.com trusty-security/main Sources [64.8 kB]
null: Get:7 http://security.ubuntu.com trusty-security/universe Sources [17.4 kB]
null: Get:8 http://security.ubuntu.com trusty-security/main amd64 Packages [200 kB]
null: Get:9 http://archive.ubuntu.com trusty/universe Sources [6,399 kB]
null: Get:10 http://security.ubuntu.com trusty-security/universe amd64 Packages [85.3 kB]
null: Hit http://security.ubuntu.com trusty-security/main Translation-en
null: Get:11 http://security.ubuntu.com trusty-security/universe Translation-en [46.8 kB]
null: Hit http://archive.ubuntu.com trusty/main amd64 Packages
null: Hit http://archive.ubuntu.com trusty/universe amd64 Packages
null: Hit http://archive.ubuntu.com trusty/main Translation-en
null: Hit http://archive.ubuntu.com trusty/universe Translation-en
null: Get:12 http://archive.ubuntu.com trusty-updates/main Sources [176 kB]
null: Get:13 http://archive.ubuntu.com trusty-updates/universe Sources [102 kB]
null: Get:14 http://archive.ubuntu.com trusty-updates/main amd64 Packages [435 kB]
null: Get:15 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [248 kB]
null: Get:16 http://archive.ubuntu.com trusty-updates/main Translation-en [207 kB]
null: Get:17 http://archive.ubuntu.com trusty-updates/universe Translation-en [128 kB]
null: Ign http://archive.ubuntu.com trusty/main Translation-en_US
null: Ign http://archive.ubuntu.com trusty/universe Translation-en_US
null: Fetched 9,300 kB in 9s (942 kB/s)
null: Reading package lists... Done
null: Reading package lists... Done
null: Building dependency tree
null: Reading state information... Done
null: Package 'ruby1.8' is not installed, so not removed
null: 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
null: Reading package lists... Done
null: Building dependency tree
null: Reading state information... Done
null: puppet is already the newest version.
null: The following extra packages will be installed:
null: fontconfig-config fonts-dejavu-core libfontconfig1 libruby1.9.1-dbg
null: libtcl8.5 libtcltk-ruby1.9.1 libtk8.5 libxft2 libxss1 ri1.9.1 ruby1.9.1-dev
null: ruby1.9.1-examples ruby1.9.1-full
null: Suggested packages:
null: tcl8.5 tk8.5
null: The following NEW packages will be installed:
null: fontconfig-config fonts-dejavu-core libfontconfig1 libruby1.9.1-dbg
null: libtcl8.5 libtcltk-ruby1.9.1 libtk8.5 libxft2 libxss1 ri1.9.1 ruby1.9.1-dev
null: ruby1.9.1-examples ruby1.9.1-full ruby1.9.3
null: 0 upgraded, 14 newly installed, 0 to remove and 11 not upgraded.
null: Need to get 10.5 MB of archives.
null: After this operation, 39.0 MB of additional disk space will be used.
null: Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main fonts-dejavu-core all 2.34-1ubuntu1 [1,024 kB]
null: Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main fontconfig-config all 2.11.0-0ubuntu4.1 [47.4 kB]
null: Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libfontconfig1 amd64 2.11.0-0ubuntu4.1 [123 kB]
null: Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main libtcl8.5 amd64 8.5.15-2ubuntu1 [684 kB]
null: Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main libxft2 amd64 2.3.1-2 [36.2 kB]
null: Get:6 http://archive.ubuntu.com/ubuntu/ trusty/main libxss1 amd64 1:1.2.2-1 [8,582 B]
null: Get:7 http://archive.ubuntu.com/ubuntu/ trusty/main libtk8.5 amd64 8.5.15-2ubuntu3 [641 kB]
null: Get:8 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe libtcltk-ruby1.9.1 amd64 1.9.3.484-2ubuntu1.2 [1,399 kB]
null: Get:9 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe ri1.9.1 all 1.9.3.484-2ubuntu1.2 [1,511 kB]
null: Get:10 http://archive.ubuntu.com/ubuntu/ trusty-updates/main ruby1.9.1-dev amd64 1.9.3.484-2ubuntu1.2 [871 kB]
null: Get:11 http://archive.ubuntu.com/ubuntu/ trusty-updates/main ruby1.9.1-examples all 1.9.3.484-2ubuntu1.2 [66.3 kB]
null: Get:12 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libruby1.9.1-dbg amd64 1.9.3.484-2ubuntu1.2 [4,076 kB]
null: Get:13 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe ruby1.9.1-full all 1.9.3.484-2ubuntu1.2 [2,944 B]
null: Get:14 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe ruby1.9.3 all 1.9.3.484-2ubuntu1.2 [13.0 kB]
null: Fetched 10.5 MB in 14s (718 kB/s)
null: Selecting previously unselected package fonts-dejavu-core.
null: (Reading database ... 60960 files and directories currently installed.)
null: Preparing to unpack .../fonts-dejavu-core_2.34-1ubuntu1_all.deb ...
null: Unpacking fonts-dejavu-core (2.34-1ubuntu1) ...
null: Selecting previously unselected package fontconfig-config.
null: Preparing to unpack .../fontconfig-config_2.11.0-0ubuntu4.1_all.deb ...
null: Unpacking fontconfig-config (2.11.0-0ubuntu4.1) ...
null: Selecting previously unselected package libfontconfig1:amd64.
null: Preparing to unpack .../libfontconfig1_2.11.0-0ubuntu4.1_amd64.deb ...
null: Unpacking libfontconfig1:amd64 (2.11.0-0ubuntu4.1) ...
null: Selecting previously unselected package libtcl8.5:amd64.
null: Preparing to unpack .../libtcl8.5_8.5.15-2ubuntu1_amd64.deb ...
null: Unpacking libtcl8.5:amd64 (8.5.15-2ubuntu1) ...
null: Selecting previously unselected package libxft2:amd64.
null: Preparing to unpack .../libxft2_2.3.1-2_amd64.deb ...
null: Unpacking libxft2:amd64 (2.3.1-2) ...
null: Selecting previously unselected package libxss1:amd64.
null: Preparing to unpack .../libxss1_1%3a1.2.2-1_amd64.deb ...
null: Unpacking libxss1:amd64 (1:1.2.2-1) ...
null: Selecting previously unselected package libtk8.5:amd64.
null: Preparing to unpack .../libtk8.5_8.5.15-2ubuntu3_amd64.deb ...
null: Unpacking libtk8.5:amd64 (8.5.15-2ubuntu3) ...
null: Selecting previously unselected package libtcltk-ruby1.9.1.
null: Preparing to unpack .../libtcltk-ruby1.9.1_1.9.3.484-2ubuntu1.2_amd64.deb ...
null: Unpacking libtcltk-ruby1.9.1 (1.9.3.484-2ubuntu1.2) ...
null: Selecting previously unselected package ri1.9.1.
null: Preparing to unpack .../ri1.9.1_1.9.3.484-2ubuntu1.2_all.deb ...
null: Unpacking ri1.9.1 (1.9.3.484-2ubuntu1.2) ...
null: Selecting previously unselected package ruby1.9.1-dev.
null: Preparing to unpack .../ruby1.9.1-dev_1.9.3.484-2ubuntu1.2_amd64.deb ...
null: Unpacking ruby1.9.1-dev (1.9.3.484-2ubuntu1.2) ...
null: Selecting previously unselected package ruby1.9.1-examples.
null: Preparing to unpack .../ruby1.9.1-examples_1.9.3.484-2ubuntu1.2_all.deb ...
null: Unpacking ruby1.9.1-examples (1.9.3.484-2ubuntu1.2) ...
null: Selecting previously unselected package libruby1.9.1-dbg.
null: Preparing to unpack .../libruby1.9.1-dbg_1.9.3.484-2ubuntu1.2_amd64.deb ...
null: Unpacking libruby1.9.1-dbg (1.9.3.484-2ubuntu1.2) ...
null: Selecting previously unselected package ruby1.9.1-full.
null: Preparing to unpack .../ruby1.9.1-full_1.9.3.484-2ubuntu1.2_all.deb ...
null: Unpacking ruby1.9.1-full (1.9.3.484-2ubuntu1.2) ...
null: Selecting previously unselected package ruby1.9.3.
null: Preparing to unpack .../ruby1.9.3_1.9.3.484-2ubuntu1.2_all.deb ...
null: Unpacking ruby1.9.3 (1.9.3.484-2ubuntu1.2) ...
null: Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
null: Setting up fonts-dejavu-core (2.34-1ubuntu1) ...
null: Setting up fontconfig-config (2.11.0-0ubuntu4.1) ...
null: Setting up libfontconfig1:amd64 (2.11.0-0ubuntu4.1) ...
null: Setting up libtcl8.5:amd64 (8.5.15-2ubuntu1) ...
null: Setting up libxft2:amd64 (2.3.1-2) ...
null: Setting up libxss1:amd64 (1:1.2.2-1) ...
null: Setting up libtk8.5:amd64 (8.5.15-2ubuntu3) ...
null: Setting up libtcltk-ruby1.9.1 (1.9.3.484-2ubuntu1.2) ...
null: Setting up ri1.9.1 (1.9.3.484-2ubuntu1.2) ...
null: Setting up ruby1.9.1-dev (1.9.3.484-2ubuntu1.2) ...
null: Setting up ruby1.9.1-examples (1.9.3.484-2ubuntu1.2) ...
null: Setting up libruby1.9.1-dbg (1.9.3.484-2ubuntu1.2) ...
null: Setting up ruby1.9.1-full (1.9.3.484-2ubuntu1.2) ...
null: Setting up ruby1.9.3 (1.9.3.484-2ubuntu1.2) ...
null: Processing triggers for libc-bin (2.19-0ubuntu6.5) ...
==> null: Provisioning with Puppet...
null: Creating Puppet staging directory...
null:
null:
null:
null:
null:
null:
null:
null:
null:
null:
null:
null: Uploading manifest directory from: puppet/manifests/
null: Uploading local modules from: puppet/modules/
null: Uploading manifests...
null:
null:
null: Running Puppet: sudo -E puppet apply --verbose --modulepath='/tmp/packer-puppet-masterless/module-0' --manifestdir='/tmp/packer-puppet-masterless/manifests' --detailed-exitcodes /tmp/packer-puppet-masterless/manifests/site.pp
null: Info: Loading facts in /tmp/packer-puppet-masterless/module-0/apt/lib/facter/apt_update_last_success.rb
null: Info: Loading facts in /tmp/packer-puppet-masterless/module-0/apt/lib/facter/apt_updates.rb
null: Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/root_home.rb
null: Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/pe_version.rb
null: Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/facter_dot_d.rb
null: Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/puppet_vardir.rb
null: Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
null: Notice: Compiled catalog for harry.vagrant.dev in environment production in 0.64 seconds
null: Info: Loading facts in /tmp/packer-puppet-masterless/module-0/apt/lib/facter/apt_update_last_success.rb
null: Info: Loading facts in /tmp/packer-puppet-masterless/module-0/apt/lib/facter/apt_updates.rb
null: Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/root_home.rb
null: Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/pe_version.rb
null: Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/facter_dot_d.rb
null: Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/puppet_vardir.rb
null: Info: Applying configuration version '1423502772'
null: Notice: /Stage[main]/Mongodb::Repo::Apt/Apt::Source[downloads-distro.mongodb.org]/Apt::Key[Add key: 9ECBEC467F0CEB10 from Apt::Source downloads-distro.mongodb.org]/Apt_key[Add key: 9ECBEC467F0CEB10 from Apt::Source downloads-distro.mongodb.org]/ensure: created
null: Notice: /Stage[main]/Mongodb::Repo::Apt/Apt::Source[downloads-distro.mongodb.org]/File[downloads-distro.mongodb.org.list]/ensure: created
null: Info: /Stage[main]/Mongodb::Repo::Apt/Apt::Source[downloads-distro.mongodb.org]/File[downloads-distro.mongodb.org.list]: Scheduling refresh of Exec[apt_update]
null: Notice: /Stage[main]/Apt::Update/Exec[apt_update]: Triggered 'refresh' from 1 events
null: Notice: /Stage[main]/Mongodb::Client::Install/Package[mongodb_client]/ensure: ensure changed 'purged' to 'present'
null: Info: /Stage[main]/Apt/File[/etc/apt/apt.conf.d/15update-stamp]: Filebucketed /etc/apt/apt.conf.d/15update-stamp to puppet with sum b9de0ac9e2c9854b1bb213e362dc4e41
null: Notice: /Stage[main]/Apt/File[/etc/apt/apt.conf.d/15update-stamp]/content: content changed '{md5}b9de0ac9e2c9854b1bb213e362dc4e41' to '{md5}92afc1e969a04f0764e9ae8343aa9f2f'
null: Notice: /Stage[main]/Mongodb::Server::Install/Package[mongodb_server]/ensure: ensure changed 'purged' to 'present'
null: Info: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]: Filebucketed /etc/mongod.conf to puppet with sum e653e268f2c19e96361a03d48d529b50
null: Notice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{md5}e653e268f2c19e96361a03d48d529b50' to '{md5}4638965e8f514df27ccafc0b8fd5e776'
null: Info: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]: Scheduling refresh of Class[Mongodb::Server::Service]
null: Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb]
null: Notice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 events
null: Notice: /Stage[main]/Main/Mongodb::Db[bunsen]/Mongodb_database[bunsen]/ensure: created
null: Notice: /Stage[main]/Main/Mongodb::Db[bunsen]/Mongodb_user[bunsen]/ensure: created
null: Notice: /Stage[main]/Main/Mongodb::Db[henson]/Mongodb_database[henson]/ensure: created
null: Notice: /Stage[main]/Main/Mongodb::Db[henson]/Mongodb_user[age]/ensure: created
null: Info: Creating state file /var/lib/puppet/state/state.yaml
null: Notice: Finished catalog run in 150.52 seconds
Build 'null' finished.
==> Builds finished. The artifacts of successful builds are:
--> null: Did not export anything. This is the null builder
➜ harry_packer git:(master) ✗ v ssh
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-45-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Mon Feb 9 17:25:35 UTC 2015
System load: 0.0 Processes: 84
Usage of /: 2.8% of 39.34GB Users logged in: 0
Memory usage: 6% IP address for eth0: 10.0.2.15
Swap usage: 0% IP address for eth1: 172.28.128.24
Graph this data and manage this system at:
https://landscape.canonical.com/
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
0 packages can be updated.
0 updates are security updates.
Last login: Mon Feb 9 17:26:10 2015 from 172.28.128.1
vagrant@harry:~$ mongo -u bunsen -p ioncannon bunsen
MongoDB shell version: 2.6.7
connecting to: bunsen
2015-02-09T17:29:22.328+0000 Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 } at src/mongo/shell/db.js:1210
exception: login failed
vagrant@harry:~$ mongo -u age -p ioncannon henson
MongoDB shell version: 2.6.7
connecting to: henson
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
> exit
bye
vagrant@harry:~$ sudo -E puppet apply --verbose --modulepath='/tmp/packer-puppet-masterless/module-0' --manifestdir='/tmp/packer-puppet-masterless/manifests' --detailed-exitcodes /tmp/packer-puppet-masterless/manifests/site.pp
Info: Loading facts in /tmp/packer-puppet-masterless/module-0/apt/lib/facter/apt_update_last_success.rb
Info: Loading facts in /tmp/packer-puppet-masterless/module-0/apt/lib/facter/apt_updates.rb
Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/root_home.rb
Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/pe_version.rb
Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/puppet_vardir.rb
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for harry.vagrant.dev in environment production in 0.62 seconds
Info: Loading facts in /tmp/packer-puppet-masterless/module-0/apt/lib/facter/apt_update_last_success.rb
Info: Loading facts in /tmp/packer-puppet-masterless/module-0/apt/lib/facter/apt_updates.rb
Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/root_home.rb
Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/pe_version.rb
Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts in /tmp/packer-puppet-masterless/module-0/stdlib/lib/facter/puppet_vardir.rb
Info: Applying configuration version '1423503002'
Error: Could not prefetch mongodb_database provider 'mongodb': Execution of '/usr/bin/mongo admin --quiet --host 127.0.0.1:27017 --eval printjson(db.getMongo().getDBs())' returned 252: 2015-02-09T17:30:05.550+0000 listDatabases failed:{
"ok" : 0,
"errmsg" : "not authorized on admin to execute command { listDatabases: 1.0 }",
"code" : 13
} at src/mongo/shell/mongo.js:47
Notice: /Stage[main]/Main/Mongodb::Db[bunsen]/Mongodb_database[bunsen]/ensure: created
Error: Could not prefetch mongodb_user provider 'mongodb': Execution of '/usr/bin/mongo admin --quiet --host 127.0.0.1:27017 --eval printjson(db.system.users.find().toArray())' returned 252: 2015-02-09T17:30:05.735+0000 error: { "$err" : "not authorized for query on admin.system.users", "code" : 13 } at src/mongo/shell/query.js:131
Notice: /Stage[main]/Main/Mongodb::Db[bunsen]/Mongodb_user[bunsen]/ensure: created
Notice: /Stage[main]/Main/Mongodb::Db[henson]/Mongodb_database[henson]/ensure: created
Notice: /Stage[main]/Main/Mongodb::Db[henson]/Mongodb_user[age]/ensure: created
Notice: Finished catalog run in 0.76 seconds
vagrant@harry:~$ mongo admin
MongoDB shell version: 2.6.7
connecting to: admin
> exit
bye
vagrant@harry:~$ mongo admin --quiet --host 127.0.0.1:27017 --eval printjson(db.getMongo().getDBs())
-bash: syntax error near unexpected token `('
vagrant@harry:~$ mongo admin --quiet --host 127.0.0.1:27017 --eval 'printjson(db.getMongo().getDBs())'
2015-02-09T17:31:24.567+0000 listDatabases failed:{
"ok" : 0,
"errmsg" : "not authorized on admin to execute command { listDatabases: 1.0 }",
"code" : 13
} at src/mongo/shell/mongo.js:47
vagrant@harry:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment