cmd="yes | #{create_ssm} create --fs '#{@resource[:fs_type]}' -p '#{@resource[:volume_group]}' -n '#{@resource[:logical_volume]}' '#{@resource[:mount_point]}'"
system(cmd)
On May 24, 2017, at 10:02 PM, ggun <gaurav...@gmail.com> wrote:Hi Experts,Need your kind help in command to execute in the puppet provider. Below is the code snippet of the puppet provider code.If I run the code with changes as below the code runs without any issue
cmd="yes | #{create_ssm} create --fs '#{@resource[:fs_type]}' -p '#{@resource[:volume_group]}' -n '#{@resource[:logical_volume]}' '#{@resource[:mount_point]}'"system(cmd)
rescue Puppet::ExecutionFailure => detailraise Puppet::Error, "Could not create filesystem, volume group,and logical group. Due to error:(#{detail.message})"end
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/6b4548f5-df77-45b8-b6de-849c6ba6144d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On May 25, 2017, at 1:19 PM, ggun <gaurav...@gmail.com> wrote:Thank you, I will try the first option. I remember doing that but it did not avoid the warnings. But I will retry.There is one last help I am looking for. if you have time to look into below issue.I have just added new parameter in the type and used the parameter command and also mention in the init.pp ssm module call, but the module fails with errorError: no parameter named 'command' at /etc/puppetlabs/code/environments/production/modules/xxx/manifests/init.pp:67 on Ssm[RHELDiskManager] at /etc/puppetlabs/code/environments/production/modules/xx/manifests/init.pp:67 on node xxxThis issue is happening for any new parameter that I am trying to add. Is there a limit to the parameter that I can use in the type ? I don't think I am overusing them. But don't know why is it failing
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/66eba19b-7926-4f77-a65d-92887937c7a7%40googlegroups.com.
Yes, I was planning to have a separate type for other ssm commands. But I got stuck with the current problem as I am not able to add any parameter beside existing.
It sounds like you're developing with a master. If so you're going to need to rerun the agent on that node and restart the master so that the type is reloaded and the additional parameters are recognised.
Generally though you're better off developing with `puppet apply` so the type code has a shorter lifespan.
> On 25 May 2017, at 19:52, ggun <gaurav...@gmail.com> wrote:
>
> evelop