Skip to content

Instantly share code, notes, and snippets.

@mrintegrity
Created October 9, 2012 09:52
Show Gist options
  • Save mrintegrity/3857703 to your computer and use it in GitHub Desktop.
Save mrintegrity/3857703 to your computer and use it in GitHub Desktop.
root@puppet:~# echo include puppet, puppet::server, foreman, foreman_proxy | puppet apply --modulepath $MODULE_PATH
notice: /Stage[main]/Puppet::Server::Passenger/File[/etc/default/puppetmaster]/ensure: defined content as '{md5}0f7a068f943de1ee1568c7da292c1e06'
notice: /Stage[main]/Tftp::Install/Package[syslinux]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Foreman::Install/Foreman::Install::Repos[foreman]/File[/etc/apt/sources.list.d/foreman.list]/ensure: defined content as '{md5}22d4e292d3323e9ccbe1471fa3d3cde0'
notice: /Stage[main]/Foreman::Install/Foreman::Install::Repos[foreman]/Exec[foreman-key-foreman]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Foreman::Install/Foreman::Install::Repos[foreman]/Exec[update-apt-foreman]: Triggered 'refresh' from 1 events
err: /Stage[main]/Foreman::Install/Package[foreman-sqlite3]/ensure: change from purged to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install foreman-sqlite3' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
foreman libc-dev-bin libc6-dev libsqlite3-dev linux-libc-dev rake
ruby-bundler ruby1.8-dev rubygems rubygems1.8
Suggested packages:
glibc-doc sqlite3-doc
Recommended packages:
foreman-proxy manpages-dev gcc c-compiler zip build-essential
The following NEW packages will be installed:
foreman foreman-sqlite3 libc-dev-bin libc6-dev libsqlite3-dev linux-libc-dev
rake ruby-bundler ruby1.8-dev rubygems rubygems1.8
0 upgraded, 11 newly installed, 0 to remove and 3 not upgraded.
Need to get 6842 kB of archives.
After this operation, 30.9 MB of additional disk space will be used.
Get:1 http://se.archive.ubuntu.com/ubuntu/ precise-updates/main libc-dev-bin amd64 2.15-0ubuntu10.2 [84.5 kB]
Get:2 http://se.archive.ubuntu.com/ubuntu/ precise-updates/main linux-libc-dev amd64 3.2.0-31.50 [866 kB]
Get:3 http://deb.theforeman.org/ stable/main rake all 0.9.2.2-4 [55.3 kB]
Get:4 http://se.archive.ubuntu.com/ubuntu/ precise-updates/main libc6-dev amd64 2.15-0ubuntu10.2 [2944 kB]
Get:5 http://se.archive.ubuntu.com/ubuntu/ precise-updates/main libsqlite3-dev amd64 3.7.9-2ubuntu1.1 [459 kB]
Get:6 http://se.archive.ubuntu.com/ubuntu/ precise/universe ruby-bundler all 1.0.15-0ubuntu2 [102 kB]
Get:7 http://se.archive.ubuntu.com/ubuntu/ precise/main ruby1.8-dev amd64 1.8.7.352-2ubuntu1 [632 kB]
Get:8 http://deb.theforeman.org/ stable/main rubygems all 1.8.24-1 [596 kB]
Get:9 http://deb.theforeman.org/ stable/main rubygems1.8 all 1.8.24-1 [29.3 kB]
Get:10 http://deb.theforeman.org/ stable/main foreman all 1.0.1-1 [1028 kB]
Get:11 http://deb.theforeman.org/ stable/main foreman-sqlite3 all 1.0.1-1 [46.8 kB]
Fetched 6842 kB in 4s (1482 kB/s)
Selecting previously unselected package libc-dev-bin.
(Reading database ... 53515 files and directories currently installed.)
Unpacking libc-dev-bin (from .../libc-dev-bin_2.15-0ubuntu10.2_amd64.deb) ...
Selecting previously unselected package linux-libc-dev.
Unpacking linux-libc-dev (from .../linux-libc-dev_3.2.0-31.50_amd64.deb) ...
Selecting previously unselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.15-0ubuntu10.2_amd64.deb) ...
Selecting previously unselected package libsqlite3-dev.
Unpacking libsqlite3-dev (from .../libsqlite3-dev_3.7.9-2ubuntu1.1_amd64.deb) ...
Selecting previously unselected package rake.
Unpacking rake (from .../rake_0.9.2.2-4_all.deb) ...
Selecting previously unselected package ruby-bundler.
Unpacking ruby-bundler (from .../ruby-bundler_1.0.15-0ubuntu2_all.deb) ...
Selecting previously unselected package ruby1.8-dev.
Unpacking ruby1.8-dev (from .../ruby1.8-dev_1.8.7.352-2ubuntu1_amd64.deb) ...
Selecting previously unselected package rubygems.
Unpacking rubygems (from .../rubygems_1.8.24-1_all.deb) ...
Selecting previously unselected package rubygems1.8.
Unpacking rubygems1.8 (from .../rubygems1.8_1.8.24-1_all.deb) ...
Selecting previously unselected package foreman.
Unpacking foreman (from .../foreman_1.0.1-1_all.deb) ...
Selecting previously unselected package foreman-sqlite3.
Unpacking foreman-sqlite3 (from .../foreman-sqlite3_1.0.1-1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up libc-dev-bin (2.15-0ubuntu10.2) ...
Setting up linux-libc-dev (3.2.0-31.50) ...
Setting up libc6-dev (2.15-0ubuntu10.2) ...
Setting up libsqlite3-dev (3.7.9-2ubuntu1.1) ...
Setting up rake (0.9.2.2-4) ...
Setting up ruby-bundler (1.0.15-0ubuntu2) ...
Setting up ruby1.8-dev (1.8.7.352-2ubuntu1) ...
Setting up rubygems (1.8.24-1) ...
Setting up rubygems1.8 (1.8.24-1) ...
Setting up foreman (1.0.1-1) ...
/usr/lib/ruby/vendor_ruby/1.8/rubygems/installer.rb:556:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/usr/bin/ruby1.8 extconf.rb
creating Makefile
make
sh: 1: make: not found
Gem files will remain installed in /usr/share/foreman/vendor/ruby/1.8/gems/json-1.7.5 for inspection.
Results logged to /usr/share/foreman/vendor/ruby/1.8/gems/json-1.7.5/ext/json/ext/generator/gem_make.out
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/installer.rb:509:in `each'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/installer.rb:509:in `build_extensions'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/installer.rb:180:in `install'
from /usr/lib/ruby/vendor_ruby/bundler/source.rb:101:in `install'
from /usr/lib/ruby/vendor_ruby/bundler/rubygems_integration.rb:78:in `preserve_paths'
from /usr/lib/ruby/vendor_ruby/bundler/source.rb:91:in `install'
from /usr/lib/ruby/vendor_ruby/bundler/installer.rb:58:in `run'
from /usr/lib/ruby/vendor_ruby/bundler/rubygems_integration.rb:93:in `with_build_args'
from /usr/lib/ruby/vendor_ruby/bundler/installer.rb:57:in `run'
from /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:12:in `each'
from /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:12:in `each'
from /usr/lib/ruby/vendor_ruby/bundler/installer.rb:49:in `run'
from /usr/lib/ruby/vendor_ruby/bundler/installer.rb:8:in `install'
from /usr/lib/ruby/vendor_ruby/bundler/cli.rb:222:in `install'
from /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/task.rb:22:in `send'
from /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/task.rb:22:in `run'
from /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /usr/lib/ruby/vendor_ruby/bundler/vendor/thor.rb:246:in `dispatch'
from /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/base.rb:389:in `start'
from /usr/bin/bundle:13
dpkg: error processing foreman (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of foreman-sqlite3:
foreman-sqlite3 depends on foreman; however:
Package foreman is not configured yet.
dpkg: error processing foreman-sqlite3 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
foreman
foreman-sqlite3
E: Sub-process /usr/bin/dpkg returned an error code (1)
at /etc/puppet/modules/common/foreman/manifests/install.pp:31
notice: /Stage[main]/Foreman::Install/Package[foreman]: Dependency Package[foreman-sqlite3] has failures: true
warning: /Stage[main]/Foreman::Install/Package[foreman]: Skipping because of failed dependencies
err: /Stage[main]/Apache::Install/Package[apache2]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install apache2' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1
libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
Suggested packages:
www-browser apache2-doc apache2-suexec apache2-suexec-custom
Recommended packages:
ssl-cert
The following NEW packages will be installed:
apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common
libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
0 upgraded, 9 newly installed, 0 to remove and 3 not upgraded.
2 not fully installed or removed.
Need to get 1843 kB of archives.
After this operation, 5588 kB of additional disk space will be used.
Get:1 http://se.archive.ubuntu.com/ubuntu/ precise/main libapr1 amd64 1.4.6-1 [89.6 kB]
Get:2 http://se.archive.ubuntu.com/ubuntu/ precise/main libaprutil1 amd64 1.3.12+dfsg-3 [74.6 kB]
Get:3 http://se.archive.ubuntu.com/ubuntu/ precise/main libaprutil1-dbd-sqlite3 amd64 1.3.12+dfsg-3 [10.4 kB]
Get:4 http://se.archive.ubuntu.com/ubuntu/ precise/main libaprutil1-ldap amd64 1.3.12+dfsg-3 [8044 B]
Get:5 http://se.archive.ubuntu.com/ubuntu/ precise/main apache2.2-bin amd64 2.2.22-1ubuntu1 [1337 kB]
Get:6 http://se.archive.ubuntu.com/ubuntu/ precise/main apache2-utils amd64 2.2.22-1ubuntu1 [91.0 kB]
Get:7 http://se.archive.ubuntu.com/ubuntu/ precise/main apache2.2-common amd64 2.2.22-1ubuntu1 [228 kB]
Get:8 http://se.archive.ubuntu.com/ubuntu/ precise/main apache2-mpm-worker amd64 2.2.22-1ubuntu1 [2294 B]
Get:9 http://se.archive.ubuntu.com/ubuntu/ precise/main apache2 amd64 2.2.22-1ubuntu1 [1484 B]
Fetched 1843 kB in 0s (3617 kB/s)
Selecting previously unselected package libapr1.
(Reading database ... 56188 files and directories currently installed.)
Unpacking libapr1 (from .../libapr1_1.4.6-1_amd64.deb) ...
Selecting previously unselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.3.12+dfsg-3_amd64.deb) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3.
Unpacking libaprutil1-dbd-sqlite3 (from .../libaprutil1-dbd-sqlite3_1.3.12+dfsg-3_amd64.deb) ...
Selecting previously unselected package libaprutil1-ldap.
Unpacking libaprutil1-ldap (from .../libaprutil1-ldap_1.3.12+dfsg-3_amd64.deb) ...
Selecting previously unselected package apache2.2-bin.
Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.22-1ubuntu1_amd64.deb) ...
Selecting previously unselected package apache2-utils.
Unpacking apache2-utils (from .../apache2-utils_2.2.22-1ubuntu1_amd64.deb) ...
Selecting previously unselected package apache2.2-common.
Unpacking apache2.2-common (from .../apache2.2-common_2.2.22-1ubuntu1_amd64.deb) ...
Selecting previously unselected package apache2-mpm-worker.
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.22-1ubuntu1_amd64.deb) ...
Selecting previously unselected package apache2.
Unpacking apache2 (from .../apache2_2.2.22-1ubuntu1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ufw ...
Processing triggers for ureadahead ...
Setting up foreman (1.0.1-1) ...
/usr/lib/ruby/vendor_ruby/1.8/rubygems/installer.rb:556:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/usr/bin/ruby1.8 extconf.rb
creating Makefile
make
sh: 1: make: not found
Gem files will remain installed in /usr/share/foreman/vendor/ruby/1.8/gems/json-1.7.5 for inspection.
Results logged to /usr/share/foreman/vendor/ruby/1.8/gems/json-1.7.5/ext/json/ext/generator/gem_make.out
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/installer.rb:509:in `each'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/installer.rb:509:in `build_extensions'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/installer.rb:180:in `install'
from /usr/lib/ruby/vendor_ruby/bundler/source.rb:101:in `install'
from /usr/lib/ruby/vendor_ruby/bundler/rubygems_integration.rb:78:in `preserve_paths'
from /usr/lib/ruby/vendor_ruby/bundler/source.rb:91:in `install'
from /usr/lib/ruby/vendor_ruby/bundler/installer.rb:58:in `run'
from /usr/lib/ruby/vendor_ruby/bundler/rubygems_integration.rb:93:in `with_build_args'
from /usr/lib/ruby/vendor_ruby/bundler/installer.rb:57:in `run'
from /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:12:in `each'
from /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:12:in `each'
from /usr/lib/ruby/vendor_ruby/bundler/installer.rb:49:in `run'
from /usr/lib/ruby/vendor_ruby/bundler/installer.rb:8:in `install'
from /usr/lib/ruby/vendor_ruby/bundler/cli.rb:222:in `install'
from /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/task.rb:22:in `send'
from /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/task.rb:22:in `run'
from /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /usr/lib/ruby/vendor_ruby/bundler/vendor/thor.rb:246:in `dispatch'
from /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/base.rb:389:in `start'
from /usr/bin/bundle:13
dpkg: error processing foreman (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of foreman-sqlite3:
foreman-sqlite3 depends on foreman; however:
Package foreman is not configured yet.
dpkg: error processing foreman-sqlite3 (--configure):
dependency problems - leaving unconfigured
Setting up libapr1 (1.4.6-1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libaprutil1 (1.3.12+dfsg-3) ...
Setting up libaprutil1-dbd-sqlite3 (1.3.12+dfsg-3) ...
Setting up libaprutil1-ldap (1.3.12+dfsg-3) ...
Setting up apache2.2-bin (2.2.22-1ubuntu1) ...
Setting up apache2-utils (2.2.22-1ubuntu1) ...
Setting up apache2.2-common (2.2.22-1ubuntu1) ...
Enabling site default.
Enabling module alias.
Enabling module autoindex.
Enabling module dir.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module status.
Enabling module auth_basic.
Enabling module deflate.
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.
Enabling module reqtimeout.
Setting up apache2-mpm-worker (2.2.22-1ubuntu1) ...
* Starting web server apache2
...done.
Setting up apache2 (2.2.22-1ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
foreman
foreman-sqlite3
E: Sub-process /usr/bin/dpkg returned an error code (1)
notice: /Stage[main]/Apache::Config/Group[www-data]: Dependency Package[apache2] has failures: true
warning: /Stage[main]/Apache::Config/Group[www-data]: Skipping because of failed dependencies
notice: /Stage[main]/Apache::Config/File[/etc/apache2/conf.d]: Dependency Package[apache2] has failures: true
warning: /Stage[main]/Apache::Config/File[/etc/apache2/conf.d]: Skipping because of failed dependencies
notice: /Stage[main]/Apache::Config/File[/etc/apache2/conf.d/apache2.conf]: Dependency Package[apache2] has failures: true
warning: /Stage[main]/Apache::Config/File[/etc/apache2/conf.d/apache2.conf]: Skipping because of failed dependencies
notice: /Stage[main]/Apache::Config/User[www-data]: Dependency Package[apache2] has failures: true
warning: /Stage[main]/Apache::Config/User[www-data]: Skipping because of failed dependencies
notice: /Stage[main]/Apache::Config/File[/var/www]: Dependency Package[apache2] has failures: true
warning: /Stage[main]/Apache::Config/File[/var/www]: Skipping because of failed dependencies
notice: /Stage[main]/Puppet::Server::Passenger/File[puppet_vhost]: Dependency Package[apache2] has failures: true
warning: /Stage[main]/Puppet::Server::Passenger/File[puppet_vhost]: Skipping because of failed dependencies
notice: /Stage[main]/Apache::Ssl/Exec[enable-ssl]: Dependency Package[apache2] has failures: true
warning: /Stage[main]/Apache::Ssl/Exec[enable-ssl]: Skipping because of failed dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment