Giter Club home page Giter Club logo

puppet-apt's People

Contributors

ema avatar grooverdan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puppet-apt's Issues

the apt-get update occurs too late

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

/etc/apt/sources.list isn't a listed resource

diff --git a/manifests/init.pp b/manifests/init.pp
index 3864b85..4fef6a1 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -34,7 +34,7 @@ class apt {
command => "/usr/bin/apt-get -qq update",
logoutput => false,
refreshonly => true,

  •        subscribe   => [File["/etc/apt/sources.list"], File["/etc/apt/sources.list.d"], File["/etc/apt/apt.conf"]];
    
  •        subscribe   => [ File["/etc/apt/sources.list.d"], File["/etc/apt/apt.conf"]];
    
    }
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.