Ask Your Question
0

[Beginner] Ensure value Architecture Master/Agent

asked 2013-12-20 17:41:02 -0500

sushi gravatar image

updated 2013-12-20 17:46:46 -0500

llowder gravatar image

Hello,

Sorry for my English I'm not a native speaker.

I learn puppet and I have some questions about this:

  • I don't understand the utility of some values of ensure attribute like file, link, directory, this is not the type attribute that should to have these values?

  • For Master/Agent Architecture, it's like client/server architecture? And about catalogs, if i have 100 agent, the master will have 100 catalogs? and these catalogs will be to generate from the site.pp?

  • I intend to use vagrant with puppet in order to install Ubuntu with gnome and few ...

(more)
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-12-20 17:54:18 -0500

llowder gravatar image

The values for the ensure attribute vary based on the type of resource. For the file resource, you can ensure present, absent, file, directory, or link.

present is used when you just want it to exist, but don't care if it is a file, symlink or directory. absent means it should not exist file means it is a file of some sort - typically text, but can be binary directory means it is a directory link means it is a symlink / shortcut

You can get the full details for this type form the docs and information on all the types ... (more)

edit flag offensive delete link more
0

answered 2013-12-20 19:13:57 -0500

sushi gravatar image

updated 2013-12-20 19:14:51 -0500

Thank you for your answer.

I follow the Learning Puppet Documentation and when I execute site.pp with the learnpuppetcentos I get two warning:

  • Could not retrive fact fqdn
  • Host is missing hostname and/or domain: learn.localdomain

So, i guess I don't have agent and I don't have domain for this but I don't know if it's important for that I continue to read the documentation?

edit flag offensive delete link more

Comments

DNS or at least entries in the /etc/hosts need to be configured so the Master <--> Agent can communicate with each other. They each need to know the FQDN and IPs

bmurts gravatar imagebmurts ( 2013-12-23 11:19:25 -0500 )edit

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: 2013-12-20 17:41:02 -0500

Seen: 109 times

Last updated: Dec 20 '13