0
puppet apply
에 인수 인수를 전달하려고합니다.인형에 인수를 전달하지 못하는 사실이 적용됩니다.
export FACTER_command="start"
puppet apply site.pp $FACTER_command
내 코드에서 내가 가진 : 여기에 내가 시도 무엇
Error: '/bin/bash -c "/some/path/to/scripts.sh -t some_arg $::command"' returned 1 instead of one of [0]
Error: /Stage[main]/Standard/Exec[some_exec]/returns: change from 'notrun' to ['0'] failed: '/some/path/to/scripts.sh -t some_arg $::command"' returned 1 instead of one of [0]
사람이 어떤이 있습니까 :
exec { 'some_exec':
command => '/bin/bash -c "/some/path/to/scripts.sh -t some_arg $::command"',
은 ...
나는이 메시지 오류가 이것에 대한 생각?UPDATE
class standard{
$param_test="/some/path/to/scripts.sh -t some_arg ${::command}"
file{'kick_servers':
ensure => 'file',
path => '/some/path/to/scripts.sh',
owner => 'some_user,
group => 'some_user',
mode => '0755',
notify => Exec['some_exec']
}
exec { 'some_exec':
command => '/bin/bash -c ${param_test}',
cwd => "$home_user_dir",
timeout => 1800
}
}
node default {
include standard
}
그리고이 오류를 얻을
Error: '/bin/bash -c $param_test' returned 2 instead of one of [0]
Error: /Stage[main]/Standard/Exec[some_exec]/returns: change from 'notrun' to ['0'] failed: '/bin/bash -c $param_test' returned 2 instead of one of [0]
내가 마음에와 나는 또한 그것을 시도한다는 증서에 있었다 사실, 감사합니다 :
변경하려면 간부 오류 상태로 2를 제외하고 같은 오류 :'[0] '중 하나 대신에 2를 반환했습니다. – user1611830
질문했을 때만 대답 할 수 있습니다. 질문을 업데이트하여 시도한 모든 것을 보여줄 수 있습니다. 모든 관련 세부 사항을 찾았습니까? –
내 매니페스트 게시물의 코드를 업데이트하고 내가 얻은 오류를 표시했습니다. – user1611830