This shows you the differences between two versions of the page.
puppet [2013/05/24 17:17] k2patel [checking syntax on template] |
puppet [2020/08/10 02:35] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Puppet (data center automation and configuration management framework) ====== | ||
- | ==== Puppet YUM Repository ==== | ||
- | <code bash | /etc/yum.repos.d/puppet-el.repo> | ||
- | [Puppet_EL_Repo] | ||
- | name=Puppet Enterprise Linux | ||
- | baseurl=http://yum.puppetlabs.com/el/6/products/x86_64/ | ||
- | enabled=1 | ||
- | gpgcheck=1 | ||
- | gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-Key-Puppet | ||
- | |||
- | [Puppet_EL_dependancies] | ||
- | name=Puppet Enterprise Dependencies | ||
- | baseurl=http://yum.puppetlabs.com/el/6/dependencies/x86_64/ | ||
- | enabled=1 | ||
- | gpgcheck=1 | ||
- | gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-Key-Puppet | ||
- | </code> | ||
- | |||
- | |||
- | |||
- | ==== checking syntax on template ==== | ||
- | <code rbuy> | ||
- | erb -P -x -T '-' mytemplate.erb | ruby -c | ||
- | </code> | ||
- | |||
- | [[ http://docs.puppetlabs.com/guides/templating.html#referencing-variables | Variable Referencing ]] | ||
- | |||
- | [[ http://docs.puppetlabs.com/references/2.7.3/function.html | Function Reference ]] | ||
- | |||
- | [[ https://groups.google.com/group/puppet-users/browse_thread/thread/e56e0f678a134089 | Incremental Number ]] |