Ask Your Question
0

How to name a resource

asked 2018-03-19 11:41:34 -0600

spic gravatar image

Hi, sorry for disturbing about what may look like a beginner-level question...

I am using the puppet-python module (but the question is valid for any module i think). Part of it i am using python::pip as such :

python::pip {'jupyter' : pkgname => 'jupyter', }

to install a "package" thanks to pip. I need this package to be installed only after doing something else (below a fake Package example") , which means i want to create some relationship like :

Package["fake"]->python::pip['jupyter']

But i get the following error :

Could not find resource 'Python::Pip[jupyter]' for relationship

This error is not a surprise for me but i have no idea of how to "name" the related "python::pip" resource (using "Python::Pip['jupyter']" instead of python::pip['jupyter'] gives the same error message)

Thanks a lot to anyone who could help. With Regards

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-03-21 04:39:22 -0600

spic gravatar image

updated 2018-03-22 08:14:57 -0600

Last update, i finally succeeded :

$piplist = ['jupyter','numpy']

python::pip { $piplist:

ensure => 'present',

}

Package["python3-pip"]->python::pip[$piplist]

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-03-19 11:41:34 -0600

Seen: 33 times

Last updated: Mar 22