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
build_command': undefined method
shellescape' for nil:NilClass
#158
Comments
Thank you for reporting. Would you give me a recipe code to reproduce the error? |
For example , it is a recipe such as the following group 'create ham group' do
action :create
groupname 'ham'
gid 602
end
user 'create ham user' do
action :create
username 'ham'
password '*'
uid 602
gid 602
end
directory '/var/local' do
action :create
owner 'ham'
group 'ham'
end
directory '/var/local/etc' do
action :create
owner 'ham'
group 'ham'
end
template '/var/local/etc/logrotate.d/my-service' do
owner 'ham'
group 'ham'
mode '644'
notifies :run, 'execute[update logrotate conf]'
end
link '/etc/logrotate.d/my-service' do
user 'root'
to '/var/local/etc/logrotate.d/my-service'
not_if 'test -h /var/local/etc/logrotate.d/my-service'
end
execute 'update logrotate conf' do
action :nothing
command '/usr/sbin/logrotate /etc/logrotate.conf'
end |
Thank you. I'll try to reproduce the problem. |
I'm facing same problem, too.
The 'shell' variable is undefined in this scope. |
You can avoid errors by adding configuration to Vagrantfile like below. config.vm.provision :itamae do |config|
config.shell = '/bin/sh'
end |
Is 'config.shell' requirement option for vagrant plugin? |
@yuichiro-naito |
@hico-horiuchi Thanks for the answer. |
Fix shell method on backend (close #158)
Once I have upgraded itamae from 1.2.11 to 1.4.5 the following error is generated.
It seems to occur if user attribute in the
link resource
orservice resource
is specified .However, there is described about
user attribute
in the wiki page. so, Which behavior is correct?The text was updated successfully, but these errors were encountered: