Puppet openstack modules

Bogdan Dobrelya bdobreli at redhat.com
Tue Mar 2 09:05:32 UTC 2021

On 2/27/21 4:06 PM, Takashi Kajinami wrote:
> Ruby codes in puppet-openstack repos are used for the following three 
> purposes.
>   1. unit tests and acceptance tests using serverspec framework (files 
> placed under spec)
>   2. implementation of custom type, provider, and function

And some modules do really heavy use of those customizations written in 
ruby, like puppet-pacemaker [0], which is 57% in Ruby and only 41% in 

[0] https://github.com/openstack/puppet-pacemaker

>   3. template files (We use ERB instead of pure Ruby about this, though)
> 1 is supposed to be used only for testing during deployment but 2 and 3 
> can be used
> in any production use case in combination with puppet manifest files to 
> manage
> OpenStack deployments.
> On Sat, Feb 27, 2021 at 5:01 AM Bessghaier, Narjes 
> <narjes.bessghaier.1 at ens.etsmtl.ca 
> <mailto:narjes.bessghaier.1 at ens.etsmtl.ca>> wrote:
>     Dear OpenStack team,
>     My name is Narjes and I'm a PhD student at the University of
>     Montréal, Canada.
>       My current work consists of analyzing code reviews on the puppet
>     modules. I would like to precisely know what the ruby files are used
>     for in the puppet modules. As mentioned in the official website,
>     most of unit test are written in ruby. Are ruby files destined to
>     carry out units tests or destined for production code.
>     I appreciate your help,
>     Thank you

Best regards,
Bogdan Dobrelya,
Irc #bogdando

More information about the openstack-discuss mailing list