Ask Your Question

Can serverspec make use of custom facts?

asked 2015-11-26 06:10:45 -0600

schowdhury gravatar image

At the bottom of this page:

It shows how you can add logic in serverspec code based on OS information. Is there a way I can do the same but using custom facts (or external facts) instead?

Thanks, Sher

edit retag flag offensive close merge delete


Hi Sher - I also want to use custom facts similar like your requirement did you get any update on this.

Chutki gravatar imageChutki ( 2015-12-18 03:33:15 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-02-18 00:24:05 -0600

Serverspec doesn't know anything about Puppet, and provides just a few of its own "facts" (I think, just those three mentioned in your link). What you probably need is not Serverspec, but Beaker's extensions to Serverspec e.g. Beaker docs.

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



Asked: 2015-11-26 06:10:45 -0600

Seen: 578 times

Last updated: Feb 18 '16