Installing the package dependencies

95 views
Skip to first unread message

zor...@gmail.com

unread,
Dec 19, 2013, 8:30:30 AM12/19/13
to puppet...@googlegroups.com
hi.
I have here a site.pp file:
root@puppet:/var/puppet/etc/manifests# cat /etc/puppet/puppet.conf
[main]
confdir=/var/puppet/etc
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates

#masterlog=/var/log/puppet/puppetmaster.log
#puppetdlog=$logdir/puppetd.log

#[master]
#certname = puppet.office

[dev]
manifest = /tmp/1.pp

root@puppet:/var/puppet/etc/manifests# cat /tmp/1.pp
package { php5-apc: ensure => installed }
package { php5-cli: ensure => installed }
package { php5-common: ensure => installed }
package { php5-curl: ensure => installed }
package { php5-dev: ensure => installed }
package { php5-fpm: ensure => installed }
package { php5-gd: ensure => installed }
package { php5-imap: ensure => installed }
package { php5-mcrypt: ensure => installed }
package { php5-memcache: ensure => installed }
package { php5-mysqlnd: ensure => installed }
package { php5-pinba: ensure => installed }
package { php5-redis: ensure => installed }
root@puppet:/var/puppet/etc/manifests#

   




Packages are installed via provider apt repository dotdeb.
After installation, produced using pupped I find packages apache:


root@web2-dev:~# puppet agent --environment dev --test
Info: Retrieving plugin
Info: Caching catalog for web2-dev.sapato
Info: Applying configuration version '1387459329'
Notice: /Stage[main]//Package[php5-gd]/ensure: created
Notice: /Stage[main]//Package[php5-apc]/ensure: created
Notice: /Stage[main]//Package[php5-common]/ensure: created
Notice: /Stage[main]//Package[php5-mcrypt]/ensure: created
Notice: /Stage[main]//Package[php5-memcache]/ensure: created
Notice: /Stage[main]//Package[php5-pinba]/ensure: created
Notice: /Stage[main]//Package[php5-fpm]/ensure: created
Notice: /Stage[main]//Package[php5-curl]/ensure: created
Notice: /Stage[main]//Package[php5-imap]/ensure: created
Notice: /Stage[main]//Package[php5-mysqlnd]/ensure: created
Notice: /Stage[main]//Package[php5-redis]/ensure: created
Notice: /Stage[main]//Package[php5-cli]/ensure: created
Notice: /Stage[main]//Package[php5-dev]/ensure: ensure changed 'purged' to 'present'
Notice: Finished catalog run in 30.67 seconds
root@web2-dev:~# dpkg -l | grep apache
ii apache2-mpm-prefork 2.2.16-6+squeeze11 Apache HTTP Server - traditional non-threaded model
ii apache2-utils 2.2.16-6+squeeze11 utility programs for webservers
ii apache2.2-bin 2.2.16-6+squeeze11 Apache HTTP Server common binary files
ii apache2.2-common 2.2.16-6+squeeze11 Apache HTTP Server common files
ii libapache2-mod-php5filter 5.4.23-1~dotdeb.0 server-side, HTML-embedded scripting language (apache 2 filter module)
root@web2-dev:~#


root@web2-dev:~# aptitude show apache2-utils
Package: apache2-utils
State: installed
Automatically installed: yes
Version: 2.2.16-6+squeeze11
Priority: optional
Section: httpd
Maintainer: Debian Apache Maintainers 
Uncompressed Size: 344 k
Depends: libapr1 (>= 1.2.7), libaprutil1 (>= 1.2.7+dfsg), libc6 (>= 2.4), libssl0.9.8 (>= 0.9.8m-1)
Conflicts: apache-common (< 1.3.28.0.1-1)
Replaces: apache-utils (< 1.3.33-4), apache2-common


I am sure that these packages were installed pupped tonnes to his work these packages were not.
If you put the packages manually (via apt-get) install apache does not occur.
How pupped installs apache?

Felix Frank

unread,
Dec 21, 2013, 5:43:24 PM12/21/13
to puppet...@googlegroups.com
Hi,

it's possible that apt-get from the console uses a different
configuration than what puppet performs. Specifically, if puppet is
installing recommended packages and your commandline is not, that could
lead to the difference in behavior you are observing.

In any case, you may want to check your apt configuration and disable
the automatic installation of recommended packages.

HTH,
Felix

zor...@gmail.com

unread,
Dec 24, 2013, 12:12:47 AM12/24/13
to puppet...@googlegroups.com
Thanks! 



четверг, 19 декабря 2013 г., 17:30:30 UTC+4 пользователь zor...@gmail.com написал:
Reply all
Reply to author
Forward
0 new messages