Jon Skarpeteig
2012-Oct-04 09:34 UTC
[Puppet Users] Can Puppet interact with perl script user input fields?
I''m trying to automate deployment of centrify-samba, which has a adbindproxy.pl setup script attached. This script expects user input (where 9 out of 10 options can be defaulted). Is there any way for Puppet to preconfigure the inputs for this scripts, and mimic user behavior by supplying this information? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Guzman Braso
2012-Oct-04 12:21 UTC
Re: [Puppet Users] Can Puppet interact with perl script user input fields?
Hi, Please, be warn that I''m not a puppet guru, and very likely what I''m going to tell you it''s not recommended at all. I''ve deal with the same issue with fdisk because sfdisk did not allow me to do some stuff and needed to align some extra ssd drives from puppet. exec { "run_abindproxy.pl": logoutput => on_failure, command => adbindproxy.pl <<ADBINDEOF ADBINDEOF unless => .... } That will provide two carrier return on the expected input of abbdindproxy.pl If you have 4 questions, two should be hit carrier return to set default, third should set 2 and four "on", would be: exec { "run_abindproxy.pl": logoutput => on_failure, command => adbindproxy.pl <<ADBINDEOF 2 on ADBINDEOF unless => .... } This works like a charm in puppet 2.7, dunno other versions. And again: I don''t believe this is a recommended way. Cheers Guzman On Thu, Oct 4, 2012 at 6:34 AM, Jon Skarpeteig <jon.skarpeteig@gmail.com>wrote:> I''m trying to automate deployment of centrify-samba, which has a > adbindproxy.pl setup script attached. This script expects user input > (where 9 out of 10 options can be defaulted). Is there any way for > Puppet to preconfigure the inputs for this scripts, and mimic user > behavior by supplying this information? > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- GuruHub - Guzmán Brasó http://www.guruhub.com.uy - +59898674020 Rivera 3565 - CP11400 - Montevideo, Uruguay -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Peter Brown
2012-Oct-05 02:01 UTC
Re: [Puppet Users] Can Puppet interact with perl script user input fields?
It''s probably easier in the long run to work out what that script does and replicate those settings in your samba puppet class. On 4 October 2012 19:34, Jon Skarpeteig <jon.skarpeteig@gmail.com> wrote:> I''m trying to automate deployment of centrify-samba, which has a > adbindproxy.pl setup script attached. This script expects user input > (where 9 out of 10 options can be defaulted). Is there any way for > Puppet to preconfigure the inputs for this scripts, and mimic user > behavior by supplying this information? > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jon Skarpeteig
2012-Oct-05 06:55 UTC
[Puppet Users] Re: Can Puppet interact with perl script user input fields?
The script is several thousand lines of code. Definitely not easier than Guzman Braso''s suggestion :-) Although I''m surprised that Puppet doesn''t have any supported way of shell interaction with scripts? On Oct 5, 4:01 am, Peter Brown <rendhal...@gmail.com> wrote:> It''s probably easier in the long run to work out what that script does > and replicate those settings in your samba puppet class. > > On 4 October 2012 19:34, Jon Skarpeteig <jon.skarpet...@gmail.com> wrote: > > > > > > > > > I''m trying to automate deployment of centrify-samba, which has a > > adbindproxy.pl setup script attached. This script expects user input > > (where 9 out of 10 options can be defaulted). Is there any way for > > Puppet to preconfigure the inputs for this scripts, and mimic user > > behavior by supplying this information? > > > -- > > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Steven Nemetz
2012-Oct-05 10:55 UTC
RE: [Puppet Users] Re: Can Puppet interact with perl script user input fields?
The centrify script may be thousands of lines, but it doesn''t do that much. A lot of it is for user interaction and multiple OS stuff. At my last company we used centrify for authentication. It was less then a dozen commands to setup. A bit longer than that once put into puppet. If you really want to interact with the script instead, Linux has programs for doing this. There is no reason to duplicate this in the puppet core, when this is not the recommended way of doing things. If the script is installing things and puppet doesn''t know about everything that is installed and modified, it can''t manage them. Goes against the primary design. Steven> Date: Thu, 4 Oct 2012 23:55:55 -0700 > Subject: [Puppet Users] Re: Can Puppet interact with perl script user input fields? > From: jon.skarpeteig@gmail.com > To: puppet-users@googlegroups.com > > The script is several thousand lines of code. Definitely not easier > than Guzman Braso''s suggestion :-) > > Although I''m surprised that Puppet doesn''t have any supported way of > shell interaction with scripts? > > On Oct 5, 4:01 am, Peter Brown <rendhal...@gmail.com> wrote: > > It''s probably easier in the long run to work out what that script does > > and replicate those settings in your samba puppet class. > > > > On 4 October 2012 19:34, Jon Skarpeteig <jon.skarpet...@gmail.com> wrote: > > > > > > > > > > > > > > > > > I''m trying to automate deployment of centrify-samba, which has a > > > adbindproxy.pl setup script attached. This script expects user input > > > (where 9 out of 10 options can be defaulted). Is there any way for > > > Puppet to preconfigure the inputs for this scripts, and mimic user > > > behavior by supplying this information? > > > > > -- > > > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > > > To post to this group, send email to puppet-users@googlegroups.com. > > > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > > > For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Peter Brown
2012-Oct-07 23:35 UTC
Re: [Puppet Users] Re: Can Puppet interact with perl script user input fields?
You could change the interaction in the script so it accepts command line options. Then it would be easy to manage with puppet. On 5 October 2012 16:55, Jon Skarpeteig <jon.skarpeteig@gmail.com> wrote:> The script is several thousand lines of code. Definitely not easier > than Guzman Braso''s suggestion :-) > > Although I''m surprised that Puppet doesn''t have any supported way of > shell interaction with scripts? > > On Oct 5, 4:01 am, Peter Brown <rendhal...@gmail.com> wrote: >> It''s probably easier in the long run to work out what that script does >> and replicate those settings in your samba puppet class. >> >> On 4 October 2012 19:34, Jon Skarpeteig <jon.skarpet...@gmail.com> wrote: >> >> >> >> >> >> >> >> > I''m trying to automate deployment of centrify-samba, which has a >> > adbindproxy.pl setup script attached. This script expects user input >> > (where 9 out of 10 options can be defaulted). Is there any way for >> > Puppet to preconfigure the inputs for this scripts, and mimic user >> > behavior by supplying this information? >> >> > -- >> > You received this message because you are subscribed to the Google Groups "Puppet Users" group. >> > To post to this group, send email to puppet-users@googlegroups.com. >> > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. >> > For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jon Skarpeteig
2012-Oct-08 13:03 UTC
[Puppet Users] Re: Can Puppet interact with perl script user input fields?
"It was less then a dozen commands to setup. A bit longer than that once put into puppet." Is this code available anywhere? On Oct 5, 12:55 pm, Steven Nemetz <snem...@hotmail.com> wrote:> The centrify script may be thousands of lines, but it doesn''t do that much. A lot of it is for user interaction and multiple OS stuff. At my last company we used centrify for authentication. It was less then a dozen commands to setup. A bit longer than that once put into puppet. > > If you really want to interact with the script instead, Linux has programs for doing this. There is no reason to duplicate this in the puppet core, when this is not the recommended way of doing things. If the script is installing things and puppet doesn''t know about everything that is installed and modified, it can''t manage them. Goes against the primary design. > > Steven > > > > > > > > > Date: Thu, 4 Oct 2012 23:55:55 -0700 > > Subject: [Puppet Users] Re: Can Puppet interact with perl script user input fields? > > From: jon.skarpet...@gmail.com > > To: puppet-users@googlegroups.com > > > The script is several thousand lines of code. Definitely not easier > > than Guzman Braso''s suggestion :-) > > > Although I''m surprised that Puppet doesn''t have any supported way of > > shell interaction with scripts? > > > On Oct 5, 4:01 am, Peter Brown <rendhal...@gmail.com> wrote: > > > It''s probably easier in the long run to work out what that script does > > > and replicate those settings in your samba puppet class. > > > > On 4 October 2012 19:34, Jon Skarpeteig <jon.skarpet...@gmail.com> wrote: > > > > > I''m trying to automate deployment of centrify-samba, which has a > > > > adbindproxy.pl setup script attached. This script expects user input > > > > (where 9 out of 10 options can be defaulted). Is there any way for > > > > Puppet to preconfigure the inputs for this scripts, and mimic user > > > > behavior by supplying this information? > > > > > -- > > > > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > > > > To post to this group, send email to puppet-users@googlegroups.com. > > > > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > > > > For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.