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

Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class apt #7

Open
ibenrodriguez opened this issue Oct 20, 2015 · 1 comment

Comments

@ibenrodriguez
Copy link

root@ubuntu:# vi my.pp
root@ubuntu:
# puppet apply --verbose my.pp
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class apt at /root/my.pp:52 on node ubuntu
Wrapped exception:
Could not find declared class apt
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class apt at /root/my.pp:52 on node ubuntu
root@ubuntu:# exit
logout
vic@ubuntu:
$ sudo puppet apply --verbose my.pp
[sudo] password for vic:
Error: Could not run: Could not find file my.pp
vic@ubuntu:$ sudo puppet apply --verbose /root/my.pp
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class apt at /root/my.pp:52 on node ubuntu.ad.spirentcom.com
Wrapped exception:
Could not find declared class apt
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class apt at /root/my.pp:52 on node ubuntu.ad.spirentcom.com
vic@ubuntu:
$

@Hadh
Copy link

Hadh commented Nov 4, 2020

Hi, I know a bit too old but did you find a solution for this?

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