olindata / puppet-apt Goto Github PK
View Code? Open in Web Editor NEWApt repository module for Debian
License: Apache License 2.0
Apt repository module for Debian
License: Apache License 2.0
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
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"]];
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.