vagrant-em-demos 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70f385ca856f975c9f6909252cbe797b70b84633fafd9bda8d488f95284dbcee
4
- data.tar.gz: caf5c2e2c578904372fa3f0d5d6593f2a269a73412dadbfdde63979bd74f3b18
3
+ metadata.gz: 21c3e538f2ab4b80fa8a4cbf1dcdaed90e7e5fc560d69f9ed7296b35927c601a
4
+ data.tar.gz: 492105d1889db7d7ac78a3845600f501c02f178c255875338a8c49bf3c8a750e
5
5
  SHA512:
6
- metadata.gz: 0c09a1f155ff3decd1bd47f3dc961b6b855c7a460c5d3217edb70744ccb47d9c1960c7dc1d875034f851380b2a28e17b4538df7a3b1400f644d4538aa7378ce2
7
- data.tar.gz: f4a231c1a5c963bcf9e6d0d17cc18c90240662815847a20268366ad3c4d8c8eb1ec12306e3b8a10dbfa8b8a34716666cc4f027ce998060f99984d2bd8168cee5
6
+ metadata.gz: eb4d0df0a36f2cad0919bfb2f9c6c0830cd93bd97a9adf3dc6f91a8b0af15edb6e88f337324840f06b912c54ff19bef35adf16d14b64aa75cf0eecc7317a0c2c
7
+ data.tar.gz: 51534f0bf9994a5e92cbb5595b66e0df8194baca7e699da6326a0f998c997c4898a0184121df920daabab684d99300bb3140815f0a4cbd0c94921d11c8319139
@@ -90,6 +90,7 @@ module Vagrant
90
90
  def environment_variables
91
91
  env = {}
92
92
  env.merge!("CI_TOKEN" => ENV["CI_JOB_TOKEN"]) if ENV["CI_JOB_TOKEN"]
93
+ env.merge!("RUN_R10K" => @model.run_r10k)
93
94
  env
94
95
  end
95
96
 
@@ -29,13 +29,19 @@ else
29
29
  echo "Using released versions of modules..."
30
30
  PUPPETFILE="Puppetfile"
31
31
  fi
32
- #
33
- # Check if the Puppetfile exists before installing
34
- #
35
- if [ -f ${PUPPETFILE} ]; then
36
- /opt/puppetlabs/puppet/bin/r10k puppetfile install --puppetfile ${PUPPETFILE} --force > /dev/null # 2>&1
32
+
33
+ # Check if RUN_R10K is set to true before proceeding
34
+ if [ "$RUN_R10K" = "true" ]; then
35
+ #
36
+ # Check if the Puppetfile exists before installing
37
+ #
38
+ if [ -f ${PUPPETFILE} ]; then
39
+ /opt/puppetlabs/puppet/bin/r10k puppetfile install --puppetfile ${PUPPETFILE} --force > /dev/null # 2>&1
40
+ else
41
+ echo "Warning: ${PUPPETFILE} not found. Proceeding without module installation."
42
+ fi
37
43
  else
38
- echo "Warning: ${PUPPETFILE} not found. Proceeding without module installation."
44
+ echo "RUN_R10K is not set to true. Skipping r10k puppetfile install."
39
45
  fi
40
46
 
41
47
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-em-demos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enterprise Modules
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-18 00:00:00.000000000 Z
11
+ date: 2025-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vagrant