Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions agent_log
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[root@puppet_agent1 vagrant]# puppet agent --test
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for puppet_agent1.localdomain
Info: Applying configuration version '1492128191'
Notice: /Stage[main]/Mysql::Server::Config/File[mysql-config-file]/ensure: defined content as '{md5}4b16ed3375eaa96a2bc1b7aa00c5dd46'
Notice: /Stage[main]/Mysql::Server::Install/Package[mysql-server]/ensure: created
Notice: /Stage[main]/Mysql::Server::Service/Service[mysqld]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Mysql::Server::Service/Service[mysqld]: Unscheduling refresh on Service[mysqld]
Notice: /Stage[main]/Main/Node[puppet_agent1]/Mysql::Db[test_mdb]/Mysql_user[test_user@localhost]/password_hash: password_hash changed '*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19' to '*D3CBE489A6F7413ED7455B7CEB2FC4C5DF3E9BEB'
Notice: Applied catalog in 9.11 seconds
[root@puppet_agent1 vagrant]#
23 changes: 23 additions & 0 deletions checks
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
MariaDB [(none)]>
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
| test_mdb |
+--------------------+
5 rows in set (0.00 sec)

MariaDB [(none)]> SHOW GRANTS FOR test_user@localhost;
+------------------------------------------------------------------------------------------------------------------+
| Grants for test_user@localhost |
+------------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'test_user'@'localhost' IDENTIFIED BY PASSWORD '*D3CBE489A6F7413ED7455B7CEB2FC4C5DF3E9BEB' |
| GRANT ALL PRIVILEGES ON `test_mdb`.* TO 'test_user'@'localhost' |
+------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)

MariaDB [(none)]>
11 changes: 11 additions & 0 deletions site.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node 'puppet_agent1' {
include '::mysql::server'

mysql::db { 'test_mdb':
user => 'test_user',
password => 'p@$$w0rd',
grant => ['ALL'],
}

}