Thanks kc! I probably didn't myself clear. I don't wanna create the "the
config directory", in stead,* if it exists*, then make sure "config" file is
present with those info. Cheers!!
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view thi
On Jun 10, 2011, at 4:10 PM, Sans wrote:
> Dear all,
>
> This is my script in the bash: how can I put it into puppet?
>
> #!/usr/bin/env bash
>
> CONF_DIR="/var/mom_priv"
> CPU_COUNT=`cat /proc/cpuinfo | grep siblings | uniq | cut -d\ -f2`
>
> ideal_load_var=$(echo "scale=2; ${CPU_COUNT}+0.
Dear all,
This is my script in the bash: how can I put it into puppet?
#!/usr/bin/env bash
CONF_DIR="/var/mom_priv"
CPU_COUNT=`cat /proc/cpuinfo | grep siblings | uniq | cut -d\ -f2`
ideal_load_var=$(echo "scale=2; ${CPU_COUNT}+0.5" | bc)
max_load_var=$(echo "scale=2; ${CPU_COUNT}*1.2" | bc)