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

git::config define error #41

Open
kostyrev opened this issue Feb 3, 2015 · 3 comments
Open

git::config define error #41

kostyrev opened this issue Feb 3, 2015 · 3 comments

Comments

@kostyrev
Copy link

kostyrev commented Feb 3, 2015

include git
git::config { 'core.excludesfile':
    value    => "/opt/svn/tutu-tools/git/.gitignore",
    provider => 'system',
}

produces

Error: /usr/bin/git config --system core.excludesfile '/opt/svn/tutu-tools/git/.gitignore' returned 128 instead of one of [0]
Error: /Stage[main]/Git::Config[core.excludesfile]/Exec[git_config_core.excludesfile]/returns: change from notrun to 0 failed: /usr/bin/git config --system core.excludesfile '/opt/svn/tutu-tools/git/.gitignore' returned 128 instead of one of [0]
@Aethylred
Copy link
Member

ok. it looks like I've got to make it more careful about how it sorts out the user and environment when using the system provider. I think it needs to explictly run as root and spectify HOME=/root as an environment variable (which would also solve #40 )

@Aethylred
Copy link
Member

Which OS is this on?

@kostyrev
Copy link
Author

kostyrev commented Feb 4, 2015

centos 6.6

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

No branches or pull requests

2 participants