Tribily/puppet-apt — Issue #1: the apt-get update occurs too late
Author: grooverdan
Created: 2011-12-09 04:57:49+00:00
State: open

using this class like:
include apt::repo::mariadb
package { "mariadb-server":
ensure => "present",
require => Class["apt::repo::mariadb"],
}

the apt-get update doesn't occur before the package installation.

notice: /Stage[main]/Apt::Repo::Mariadb/Apt::Key[1BB943DB]/Exec[aptkey_add_1BB943DB]/returns: executed successfully
notice: /Stage[main]/Apt::Repo::Mariadb/Apt::Repository[mariadb]/File[mariadb.list]/ensure: created
info: /Stage[main]/Apt::Repo::Mariadb/Apt::Repository[mariadb]/File[mariadb.list]: Scheduling refresh of Exec[aptget_update]
err: /Stage[main]/Mariadb::Server/Package[mariadb-server]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install mariadb-server' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package mariadb-server

info: /Stage[main]/Mariadb::Server/Package[mariadb-server]: Scheduling refresh of Exec[Set MySQL server root password]
notice: /Stage[main]/Mariadb::Server/File[/etc/mysql/common.cnf]: Dependency Package[mariadb-server] has failures: true
warning: /Stage[main]/Mariadb::Server/File[/etc/mysql/common.cnf]: Skipping because of failed dependencies
notice: /Stage[main]/Mariadb::Server/Group[mysql]: Dependency Package[mariadb-server] has failures: true
warning: /Stage[main]/Mariadb::Server/Group[mysql]: Skipping because of failed dependencies
notice: /Stage[main]/Mariadb::Server/User[mysql]: Dependency Package[mariadb-server] has failures: true
warning: /Stage[main]/Mariadb::Server/User[mysql]: Skipping because of failed dependencies
notice: /Stage[main]/Mariadb::Server/File[/var/lib/mysql]: Dependency Package[mariadb-server] has failures: true
warning: /Stage[main]/Mariadb::Server/File[/var/lib/mysql]: Skipping because of failed dependencies
notice: /Stage[main]/Mariadb::Server/File[/var/run/mysqld]: Dependency Package[mariadb-server] has failures: true
warning: /Stage[main]/Mariadb::Server/File[/var/run/mysqld]: Skipping because of failed dependencies
notice: /Stage[main]/Mariadb::Server/File[/var/log/mysql]: Dependency Package[mariadb-server] has failures: true
warning: /Stage[main]/Mariadb::Server/File[/var/log/mysql]: Skipping because of failed dependencies
notice: /Stage[main]/Mariadb::Server/File[/etc/mysql/my.cnf]: Dependency Package[mariadb-server] has failures: true
warning: /Stage[main]/Mariadb::Server/File[/etc/mysql/my.cnf]: Skipping because of failed dependencies
notice: /Stage[main]/Mariadb::Server/Service[mysql]: Dependency Package[mariadb-server] has failures: true
warning: /Stage[main]/Mariadb::Server/Service[mysql]: Skipping because of failed dependencies
notice: /Stage[main]/Mariadb::Server/File[/etc/mysql/debian.cnf]: Dependency Package[mariadb-server] has failures: true
warning: /Stage[main]/Mariadb::Server/File[/etc/mysql/debian.cnf]: Skipping because of failed dependencies
notice: /Stage[main]/Mariadb::Server/File[/etc/mysql/binlog.cnf]: Dependency Package[mariadb-server] has failures: true
warning: /Stage[main]/Mariadb::Server/File[/etc/mysql/binlog.cnf]: Skipping because of failed dependencies
notice: /Stage[main]/Mariadb::Server/Exec[Set MySQL server root password]: Dependency Package[mariadb-server] has failures: true
warning: /Stage[main]/Mariadb::Server/Exec[Set MySQL server root password]: Skipping because of failed dependencies
err: /Stage[main]/Mariadb::Server/Exec[Set MySQL server root password]: Failed to call refresh: Could not find executable '/usr/bin/mysqladmin'
notice: /Stage[main]/Apt/Exec[aptget_update]: Triggered 'refresh' from 1 events