Ubuntu 12.04 Puppet Master使用MySQL作为后端数据库
1.安装mysql数据库
# apt-get install mysql-server
2.创建数据
sudo mysql -uroot -p
mysql> CREATE DATABASE puppet CHARACTER SET utf8;
mysql > CREATE USER 'puppet'@'localhost'IDENTIFIED BY '123123';
mysql > GRANT ALL PRIVILEGES ON puppet.* TO 'puppet'@'localhost';
mysql> flush privileges;
3.在puppet.conf写入
storeconfigs = true
dbadapter = mysql
dbname = puppet
dbuser = puppet
dbpassword = 123123
dbserver = localhost
4.下载 gem mysql
gem install mysql -- --with-mysql-config=/usr/bin/mysql_config
相关链接:http://projects.puppetlabs.com/projects/1/wiki/using_stored_configuration
相关推荐
zhangwentaohh 2020-06-05
YJWcsdn 2020-01-17
84453864 2020-01-17
tanzhe0 2020-01-13
小新没有蜡笔 2019-12-11
nicolesmile 2019-12-04
ppppfly 2015-08-20
83274251 2012-05-09
sxjinmingjie 2019-06-30
winxcoder 2019-06-28
80327065 2019-06-27
xinluke 2019-03-17
mayongzhancsdn 2018-04-26
83317360 2018-05-28
onepiecedn 2013-11-02
88971932 2013-05-23
Justypc 2013-05-23
ballyyang 2012-11-10