Basically, the way puppet installs things things with

/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install 
<package_name>

fails due to authentication

WARNING: The following packages cannot be authenticated

But if I do it from an ssh console normally, using apt-get install 
<package_name> it works fine without issues.

Is there a way to change how puppet uses the package installation method, 
so it works properly? If you're wondering, I have all relevant keys 
install, and I have apt-get update before I install anything, so it looks 
like it's puppets fault. I'm using Puppet 3.0.3

Notice: /Stage[main]/Php/Package[php5-mysql]: Dependency Package[php5] has 
failures: true
Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o 
DPkg::Options::=--force-confold install php5' returned 100: Reading package 
lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
  libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libonig2 libqdbm14 php5-cli php5-common php5-suhosin
  ssl-cert
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom php-pear 
openssl-blacklist
The following NEW packages will be installed:
  apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
  libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libonig2 libqdbm14 php5 php5-cli php5-common php5-suhosin
  ssl-cert
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 9103 kB of archives.
After this operation, 25.8 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap apache2.2-bin
  apache2-utils apache2.2-common apache2-mpm-prefork libonig2 libqdbm14
  php5-common libapache2-mod-php5 php5 php5-cli php5-suhosin ssl-cert
E: There are problems and -y was used without --force-yes

Error: /Stage[main]/Php/Package[php5]/ensure: change from purged to latest 
failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o 
DPkg::Options::=--force-confold install php5' returned 100: Reading package 
lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
  libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libonig2 libqdbm14 php5-cli php5-common php5-suhosin
  ssl-cert
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom php-pear 
openssl-blacklist
The following NEW packages will be installed:
  apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
  libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libonig2 libqdbm14 php5 php5-cli php5-common php5-suhosin
  ssl-cert
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 9103 kB of archives.
After this operation, 25.8 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap apache2.2-bin
  apache2-utils apache2.2-common apache2-mpm-prefork libonig2 libqdbm14
  php5-common libapache2-mod-php5 php5 php5-cli php5-suhosin ssl-cert
E: There are problems and -y was used without --force-yes


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to