Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add generate_types to Mcollective R10K plugin #458

Closed
wants to merge 7 commits into from

Conversation

stanleyz
Copy link

This MR includes the following:

  1. generate_types action to Mcollective R10K plugin
  2. feature to kick off generate_types action from the webhook binary
  3. Fix process fork issue introduced in previous commit 90da3cf

exec will replace current process with the shell sub-process instead of
spawning separate new process

all executable commands are passed to run_command, there is no much
point to fork the process before exec
the usage is

mco r10k generate_types ENVIRONMENT
@vchepkov
Copy link
Contributor

vchepkov commented Dec 7, 2018

Have you tried to run it under non-root account? 'generate types' will not work properly unless passed additional options, i.e.:

--confdir /etc/puppetlabs/puppet --codedir /etc/puppetlabs/code --vardir /opt/puppetlabs/puppet/cache

@stanleyz
Copy link
Author

stanleyz commented Dec 9, 2018

is that because the user doesn't have permission to read puppet.conf?

@vchepkov
Copy link
Contributor

vchepkov commented Dec 9, 2018

That's a strange puppet's feature. You can check under unprivileged account:

$ puppet config print config
$ puppet config print|grep dir

They all will be in $HOME/.puppetlabs

@stanleyz
Copy link
Author

yes, so I guess you could put the additional options to the puppet.conf of unprivileged users?

Of course we can change the code to allow additional parameters, but the additional options are global options not only related to generate types alone.

@vox-pupuli-tasks
Copy link

Dear @stanleyz, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

1 similar comment
@vox-pupuli-tasks
Copy link

Dear @stanleyz, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

@jakegroves
Copy link

Is this still being looked into rebasing and merging?

@stanleyz
Copy link
Author

stanleyz commented Sep 16, 2020 via email

@igalic
Copy link
Contributor

igalic commented Sep 19, 2020

can we transfer what's here (also) into a bolt task?

@bastelfreak
Copy link
Member

I think we can close this now because r10k supports the type generation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants