현재 모듈을 작동시키는 데 문제가 있습니다. 여기Bash 스크립트를 사용하여 Puppet을 설치하고 즉시 모듈을 실행할 수 있습니까?
내 목표는 브래킷을 설치하는 저장소를 추가하는 스크립트를 꼭두각시를 설치하고
finaldigi/매니페스트/init.pp ---- >>>을/etc/기존 모듈을 복사하는 것입니다 다음은
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class packagemodule at line 1 on node xubuntu.dhcp.inet.fi
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class packagemodule at line 1 on node xubuntu.dhcp.inet.fi
: 꼭두각시/모듈 폴더 어떤 이유
이 모듈은 내가 모든 스크립트가 수동으로 명령을 수행하지만 스크립트에 넣어 그것을 실행하면이 오류가 표시되면 작동 내 init.pp 파일
class packagemodule {
package { brackets:
ensure => 'installed',
allowcdrom => 'true',
}
package { apache2:
ensure => 'installed',
allowcdrom => 'true',
}
file {'/var/www/html/index.html':
content => "testing testing",
}
}
그리고 내 스크립트를
#!/bin/bash
echo | sudo add-apt-repository ppa:webupd8team/brackets
sudo apt-get update
sudo apt-get install -y puppet
sudo cp -r ./finaldigi /etc/puppet/modules
sudo puppet apply -e 'class {packagemodule:}'
그래서 그래, 그것은 작업을 수행하고 내가 수동으로 모든 명령을 입력하면 오류가 표시되지 않습니다,하지만 난 내 bash는 스크립트에서 모든 명령을 넣어 시작하면, 작동하지 않고 해당 오류를 표시하기 시작합니다.
무엇이 여기에 있습니까?
가 감사를 님의
변경이! 대상 경로에 모듈 이름을 추가하면 문제가 해결되었습니다! 이제 완벽하게 작동합니다. – deathwheeze