Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
HPC UCLV
puppet-easybuild
Commits
18cb0a4f
Commit
18cb0a4f
authored
Mar 14, 2019
by
Javier
Browse files
setting arch variable
parent
f87ba9ec
Pipeline
#507
failed with stages
in 1 minute and 23 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
manifests/init.pp
manifests/init.pp
+4
-2
manifests/params.pp
manifests/params.pp
+9
-0
spec/classes/params_spec.rb
spec/classes/params_spec.rb
+11
-0
No files found.
manifests/init.pp
View file @
18cb0a4f
...
@@ -4,8 +4,10 @@
...
@@ -4,8 +4,10 @@
#
#
# @example
# @example
# include easybuild
# include easybuild
class
easybuild
{
class
easybuild
(
$arch
=
''
$arch
=
easybuild::params::arch
,
)
{
file
{
'/etc/easybuild.d'
:
file
{
'/etc/easybuild.d'
:
ensure
=>
'directory'
,
ensure
=>
'directory'
,
}
}
...
...
manifests/params.pp
0 → 100644
View file @
18cb0a4f
# A description of what this class does
#
# @summary A short summary of the purpose of this class
#
# @example
# include easybuild::params
class
easybuild::params
{
$arch
=
'nehalem'
}
spec/classes/params_spec.rb
0 → 100644
View file @
18cb0a4f
require
'spec_helper'
describe
'easybuild::params'
do
on_supported_os
.
each
do
|
os
,
os_facts
|
context
"on
#{
os
}
"
do
let
(
:facts
)
{
os_facts
}
it
{
is_expected
.
to
compile
}
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment