“Puppet基础”的版本间的差异
跳到导航
跳到搜索
第2行: | 第2行: | ||
salt 老是0day问题 ,为了安全 于是上puppet 现在文档真的很少,以前在dovo时,流行得很呢 于是有了本文 | salt 老是0day问题 ,为了安全 于是上puppet 现在文档真的很少,以前在dovo时,流行得很呢 于是有了本文 | ||
=install= | =install= | ||
+ | ==* Enable the Puppet platform repository == | ||
+ | |||
+ | === RH=== | ||
+ | rpm -Uvh https://yum.puppet.com/puppet6-release-el-7.noarch.rpm | ||
+ | |||
+ | |||
+ | |||
+ | === debian 10 or kali 2021 === | ||
+ | <pre> | ||
+ | 记得要改为google dns 8.8.4.4 or alidns | ||
+ | #wget -c https://apt.puppetlabs.com/puppet6-release-buster.deb && dpkg -i puppet6-release-buster.deb | ||
+ | |||
+ | |||
+ | wget https://apt.puppet.com/puppet7-release-buster.deb && dpkg -i dpkg -i puppet7-release-buster.deb | ||
+ | apt update </pre> | ||
+ | == Installing Puppet Server == | ||
+ | <pre> | ||
+ | apt-get install puppetserver | ||
+ | |||
+ | sudo systemctl start puppetserver | ||
+ | |||
+ | /opt/puppetlabs/server/apps/puppetserver/bin/puppetserver -v | ||
+ | puppetserver version: 6.14.1 | ||
+ | |||
+ | cp /etc/profile /etc/profileevanbak | ||
+ | |||
+ | echo 'export PATH=/opt/puppetlabs/server/apps/puppetserver/bin/:$PATH' >> /etc/profile | ||
+ | |||
+ | |||
+ | apt-get install default-jdk | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | [https://zhuanlan.zhihu.com/p/86308378 如何在 Debian 10 上安装 OpenJDK11/OpenJDK8] | ||
+ | |||
+ | |||
+ | [https://linuxhint.com/install_jdk_debian_10/ Installing JDK on Debian 10] | ||
+ | |||
+ | https://puppet.com/docs/puppet/6.19/server/install_from_packages.html | ||
+ | == * 3. Install Puppet agent == | ||
+ | <pre> | ||
+ | ** rpm -Uvh https://yum.puppet.com/puppet7-release-el-7.noarch.rpm | ||
+ | |||
+ | https://yum.puppet.com/puppet7-release-el-8.noarch.rpm | ||
+ | https://yum.puppet.com/puppet6-release-el-7.noarch.rpm | ||
+ | |||
+ | ** | ||
+ | yum install puppet-agent | ||
+ | |||
+ | echo 'export PATH=/opt/puppetlabs/bin:$PATH' >> /etc/profile && source /etc/profile | ||
+ | |||
+ | |||
+ | https://puppet.com/docs/puppet/6.19/install_agents.html | ||
+ | |||
+ | Start the Puppet service: sudo /opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true | ||
+ | |||
+ | ** deb | ||
+ | |||
+ | |||
+ | |||
+ | </pre> | ||
+ | ==* 4. Install PuppetDB (optional)== | ||
+ | |||
+ | = = | ||
=configu= | =configu= |
2021年9月26日 (日) 11:53的版本
目录
why
salt 老是0day问题 ,为了安全 于是上puppet 现在文档真的很少,以前在dovo时,流行得很呢 于是有了本文
install
* Enable the Puppet platform repository
RH
rpm -Uvh https://yum.puppet.com/puppet6-release-el-7.noarch.rpm
debian 10 or kali 2021
记得要改为google dns 8.8.4.4 or alidns #wget -c https://apt.puppetlabs.com/puppet6-release-buster.deb && dpkg -i puppet6-release-buster.deb wget https://apt.puppet.com/puppet7-release-buster.deb && dpkg -i dpkg -i puppet7-release-buster.deb apt update
Installing Puppet Server
apt-get install puppetserver sudo systemctl start puppetserver /opt/puppetlabs/server/apps/puppetserver/bin/puppetserver -v puppetserver version: 6.14.1 cp /etc/profile /etc/profileevanbak echo 'export PATH=/opt/puppetlabs/server/apps/puppetserver/bin/:$PATH' >> /etc/profile apt-get install default-jdk
如何在 Debian 10 上安装 OpenJDK11/OpenJDK8 Installing JDK on Debian 10 https://puppet.com/docs/puppet/6.19/server/install_from_packages.html
* 3. Install Puppet agent
** rpm -Uvh https://yum.puppet.com/puppet7-release-el-7.noarch.rpm https://yum.puppet.com/puppet7-release-el-8.noarch.rpm https://yum.puppet.com/puppet6-release-el-7.noarch.rpm ** yum install puppet-agent echo 'export PATH=/opt/puppetlabs/bin:$PATH' >> /etc/profile && source /etc/profile https://puppet.com/docs/puppet/6.19/install_agents.html Start the Puppet service: sudo /opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true ** deb
* 4. Install PuppetDB (optional)
configu
默认30分钟太久
#on agent 120 秒 ,2 分钟 vi /etc/puppetlabs/puppet/puppet.conf [agent] server = master.test.cn runinterval=120
see also
Usage