Puppet openstack modules
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
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 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@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
1 is supposed to be used only for testing during deployment Sorry I meant to say 1 is supposed to be used only for testing during "development"
On Sun, Feb 28, 2021 at 12:06 AM Takashi Kajinami <tkajinam@redhat.com> 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 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@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
-- ---------- Takashi Kajinami Senior Software Maintenance Engineer Customer Experience and Engagement Red Hat email: tkajinam@redhat.com
Thank you for the clarification. Get Outlook for Android<https://aka.ms/ghei36> ________________________________ From: Takashi Kajinami <tkajinam@redhat.com> Sent: Saturday, February 27, 2021 10:06:58 AM To: Bessghaier, Narjes <narjes.bessghaier.1@ens.etsmtl.ca> Cc: openstack-discuss@lists.openstack.org <openstack-discuss@lists.openstack.org> Subject: Re: Puppet openstack modules
1 is supposed to be used only for testing during deployment Sorry I meant to say 1 is supposed to be used only for testing during "development"
On Sun, Feb 28, 2021 at 12:06 AM Takashi Kajinami <tkajinam@redhat.com<mailto:tkajinam@redhat.com>> 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 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@ens.etsmtl.ca<mailto:narjes.bessghaier.1@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 -- ---------- Takashi Kajinami Senior Software Maintenance Engineer Customer Experience and Engagement Red Hat email: tkajinam@redhat.com<mailto:tkajinam@redhat.com>
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 Puppet. [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@ens.etsmtl.ca <mailto:narjes.bessghaier.1@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
participants (3)
-
Bessghaier, Narjes
-
Bogdan Dobrelya
-
Takashi Kajinami