[Puppet Users] Re: expect like behavior function?

2013-02-27 Thread liu.cy
1. try /bin/true or /usr/bin/yes 2. if you want to use it to install software like oracle or db2 or something, many of these have silence mode or response file, you should try this way first. 3. if the software you are going to install have rpm/deb packages, that would be better than others. On

[Puppet Users] Re: Can a type-provider 'require' other files? Do all files in the type-provider tree get sent to the agent?

2013-07-03 Thread liu.cy
http://docs.puppetlabs.com/guides/plugins_in_modules.html put it in your modules's lib directory, and it will be transfered to client i think. On Thursday, July 4, 2013 6:23:11 AM UTC+8, Larry Fast wrote: > > I'm turning an existing ruby script into a type-provider pair. My first > desire was to

[Puppet Users] Re: puppet client

2013-11-15 Thread liu.cy
you are using oracle linux? http://yum.puppetlabs.com/el/5/products/x86_64/ will be fine On Saturday, November 16, 2013 6:45:47 AM UTC+8, Stuart Cracraft wrote: > > > I have a box with this uname -a output: > > Linux myhost 2.6.32-300.11.1.el5uek #1 SMP Wed Mar 7 09:55:50 EST 2012 > x86_64

Re: [Puppet Users] Re: puppet client

2013-11-15 Thread liu.cy
anyway, yum is the best choice, you should get over your various reasons. On Saturday, November 16, 2013 12:49:42 PM UTC+8, Stuart Cracraft wrote: > > Notes with ++. > > On Nov 15, 2013, at 6:02 PM, liu.cy > > wrote: > > you are using oracle linux? > > > ++ I do

Re: [Puppet Users] Puppet resources or plain script?

2014-01-31 Thread liu.cy
there are some ways to deal with it. 1. augeas, but it depends on what application are you using. augeas only works when template available. the most common config files are built-in supported like sysctl.conf, iptables, httpd.conf. you have to write your own augeas template if you are using own

Re: [Puppet Users] Puppet resources or plain script?

2014-01-31 Thread liu.cy
there are some ways to deal with it. 1. augeas, but it depends on what application are you using. augeas only works when template available. the most common config files are built-in supported like sysctl.conf, iptables, httpd.conf. you have to write your own augeas template if you are using own

Re: [Puppet Users] Puppet resources or plain script?

2014-01-31 Thread liu.cy
there are some ways to deal with it. 1. augeas, but it depends on what application are you using. augeas only works when template available. the most common config files are built-in supported like sysctl.conf, iptables, httpd.conf. you have to write your own augeas template if you are using own

Re: [Puppet Users] Puppet resources or plain script?

2014-01-31 Thread liu.cy
there are some ways to deal with it. 1. augeas, but it depends on what application are you using. augeas only works when template available. the most common config files are built-in supported like sysctl.conf, iptables, httpd.conf. you have to write your own augeas template if you are using own

Re: [Puppet Users] Puppet resources or plain script?

2014-01-31 Thread liu.cy
there are some ways to deal with it. 1. augeas, but it depends on what application are you using. augeas only works when template available. the most common config files are built-in supported like sysctl.conf, iptables, httpd.conf. you have to write your own augeas template if you are using own

Re: [Puppet Users] Puppet resources or plain script?

2014-01-31 Thread liu.cy
there are some ways to deal with it. 1. augeas, but it depends on what application are you using. augeas only works when template available. the most common config files are built-in supported like sysctl.conf, iptables, httpd.conf. you have to write your own augeas template if you are using own

[Puppet Users] Re: Failed when searching for node

2014-05-04 Thread liu.cy
first, you configured enc to get node classes from dashboard. after configuring apache to serve dashboard, enc script can't get node classes successfully, so puppet agent failed. the command enc get node classes from dashboard is "/usr/bin/env PUPPET_DASHBOARD_URL=http://localhost:3000 /usr/sha

[Puppet Users] Re: temp dir fact

2014-05-04 Thread liu.cy
http://docs.puppetlabs.com/guides/custom_facts.html facter have two type custom_facts: custom_facts and external facts Facter offers a few methods of loading facts: - $LOAD_PATH, or the ruby library load path - The environment variable ‘FACTERLIB’ - Facts distributed using pluginsync y

[Puppet Users] Re: "puppet apply --noop -e" and overiding facter values for testing

2014-05-04 Thread liu.cy
try add "export" before Facter_hostname=bob On Saturday, May 3, 2014 7:41:17 PM UTC+8, Peter wrote: > > Hi Puppet Users, > > Firstly I already know that I can override facter variables by adding them > to the commandline. Eg: > > root@dna:~# FACTER_fqdn=foo.bar.info puppet apply --noop -e > 'no

[Puppet Users] Re: temp dir fact

2014-05-04 Thread liu.cy
it looks like I misunderstood what you asked for. facter doesn't built-in temp directory fact, but i think the temp dir of all unix-like os is /tmp, it only helps when you both mange unix-like and windows hosts. On Sunday, May 4, 2014 1:50:11 AM UTC+8, Cristian Falcas wrote: > > Hello, > > Does

Re: [Puppet Users] Re: temp dir fact

2014-05-05 Thread liu.cy
t relativ to user name) > > On Sun, May 4, 2014 at 6:30 PM, liu.cy > > wrote: > > it looks like I misunderstood what you asked for. > > facter doesn't built-in temp directory fact, but i think the temp dir of > all > > unix-like os is /tmp, it only he

[Puppet Users] Re: puppet-server and puppet between the ruby environment is not consistent,whether can normal use?

2014-10-23 Thread liu.cy
puppet master and agent can run in different ruby version, it works ok in my environment. and my master run in rhel 6.5 ruby 1.8.7, some agents run in windows 2008 ruby 1.9.3, looks fine. do you have any problem? On Friday, October 24, 2014 1:30:01 PM UTC+8, Jack Chen wrote: > > hello! > > > I w

[Puppet Users] Re: Questions about puppet classes and parameters

2014-10-24 Thread liu.cy
in general, /etc/puppet/manifests/site.pp is the entry point of puppet manifests, the content always be [import 'nodes/*.pp']. create pp file in /etc/puppet/manifests/nodes directory to save your all node definitions. node definition contains variables, expressions, classes. it defines which fun

[Puppet Users] Re: Parallel deploy apps on the same node

2014-10-25 Thread liu.cy
at the same time or multiple instance? i don't know how to do it in the same time. but if you want to do the second way, defined type might good enough. like i wrote a defined type named tomcat, i can pass the different locate it installs to, port that listens to instantiate more than on tomcat a

[Puppet Users] Re: Hiera with Redis

2015-04-07 Thread liu.cy
do you want to save the hiera data to redis and puppet automatically retrieve data in redis? #1, ruby have redis module, you can just save parameters into redis in ruby.https://github.com/redis/redis-rb #2, you can write hiera custom backend to read actual data in any way you want. http://docs.p