Skip to content

Commit f4c8b97

Browse files
authored
Merge pull request #76 from cirrax/dev_cirrax
update pdk
2 parents 9b79032 + f207901 commit f4c8b97

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

.pdkignore

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
/.fixtures.yml
3030
/Gemfile
3131
/.gitattributes
32+
/.github/
3233
/.gitignore
3334
/.pdkignore
3435
/.puppet-lint.rc

Gemfile

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ group :development do
3434
gem "rubocop", '= 1.48.1', require: false
3535
gem "rubocop-performance", '= 1.16.0', require: false
3636
gem "rubocop-rspec", '= 2.19.0', require: false
37+
gem "puppet-strings", '~> 4.0', require: false
3738
gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
3839
gem "puppet-blacksmith", require: false
3940
gem "github_changelog_generator", require: false
@@ -43,6 +44,10 @@ group :system_tests do
4344
gem "puppet_litmus", '~> 1.0', require: false, platforms: [:ruby, :x64_mingw]
4445
gem "serverspec", '~> 2.41', require: false
4546
end
47+
group :release_prep do
48+
gem "puppet-strings", '~> 4.0', require: false
49+
gem "puppetlabs_spec_helper", '~> 6.0', require: false
50+
end
4651

4752
puppet_version = ENV['PUPPET_GEM_VERSION']
4853
facter_version = ENV['FACTER_GEM_VERSION']

lib/puppet/type/libvirt_network.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@
4848

4949
def change_to_s(current, desire)
5050
if @resource[:show_diff]
51-
current_exp = Tempfile.new("current", "/tmp").open
51+
current_exp = Tempfile.new('current', '/tmp').open
5252
current_exp.write(current.to_s)
5353
current_exp.close
5454
current_path = current_exp.path
55-
desire_exp = Tempfile.new("desire", "/tmp").open
55+
desire_exp = Tempfile.new('desire', '/tmp').open
5656
desire_exp.write(desire.to_s)
5757
desire_exp.close
5858
desire_path = desire_exp.path
5959
system "diff -u #{current_path} #{desire_path}"
6060
else
61-
'{md5}' + Digest::MD5.hexdigest(current.to_s) + " to: " + '{md5}' + Digest::MD5.hexdigest(desire.to_s)
61+
'{md5}' + Digest::MD5.hexdigest(current.to_s) + ' to: ' + '{md5}' + Digest::MD5.hexdigest(desire.to_s)
6262
end
6363
end
6464

metadata.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"drbd",
7070
"virtualization"
7171
],
72-
"pdk-version": "3.0.0",
73-
"template-url": "pdk-default#3.0.0",
74-
"template-ref": "tags/3.0.0-0-g056e50d"
72+
"pdk-version": "3.0.1",
73+
"template-url": "pdk-default#3.0.1",
74+
"template-ref": "tags/3.0.1-0-gd13288a"
7575
}

spec/default_facts.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#
33
# Facts specified here will override the values provided by rspec-puppet-facts.
44
---
5-
ipaddress: "172.16.254.254"
6-
ipaddress6: "FE80:0000:0000:0000:AAAA:AAAA:AAAA"
5+
networking:
6+
ip: "172.16.254.254"
7+
ip6: "FE80:0000:0000:0000:AAAA:AAAA:AAAA"
8+
mac: "AA:AA:AA:AA:AA:AA"
79
is_pe: false
8-
macaddress: "AA:AA:AA:AA:AA:AA"

0 commit comments

Comments
 (0)