This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
162 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,85 @@ | ||
#Example of Puppet Device | ||
node 'cloud-dev-405-a12-02.puretec.purestorage.com' { #--> This is Device name | ||
volume{ "pure_storage_volume": | ||
#ensure either "present" or "absent" | ||
ensure => "present", | ||
volume_name => "test_device_volume", | ||
volume_size => "2.0G", | ||
} | ||
hostconfig{ "pure_storage_host": | ||
ensure => "present", | ||
host_name => "test-device-host", | ||
host_iqnlist => ["iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03f","iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03g"], | ||
} | ||
connection{ "pure_storage_connection": | ||
ensure => "present", | ||
host_name => "test-device-host", | ||
volume_name => "test_device_volume", | ||
#Added dependency on volume and host resource types | ||
#to be present, other wise connection will fail. | ||
require => [Volume['pure_storage_volume'], | ||
Hostconfig['pure_storage_host'] | ||
], | ||
} | ||
volume{ 'pure_storage_volume': | ||
#ensure either 'present' or 'absent' | ||
ensure => 'present', | ||
volume_name => 'test_device_volume', | ||
volume_size => '2.0G', | ||
} | ||
hostconfig{ 'pure_storage_host': | ||
ensure => 'present', | ||
host_name => 'test-device-host', | ||
host_iqnlist => ['iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03f','iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03g'], | ||
} | ||
connection{ 'pure_storage_connection': | ||
ensure => 'present', | ||
host_name => 'test-device-host', | ||
volume_name => 'test_device_volume', | ||
#Added dependency on volume and host resource types | ||
#to be present, other wise connection will fail. | ||
require => [Volume['pure_storage_volume'], | ||
Hostconfig['pure_storage_host'] | ||
], | ||
} | ||
|
||
} | ||
#Example of Puppet Agent | ||
node 'calsoft-puppet-agent.puretec.purestorage.com'{ #--> This is Agent vm name | ||
#Note : device_url is MANDATORY here. | ||
$device_url = 'https://pureuser:******@cloud-dev-405-a12-02.puretec.purestorage.com' | ||
volume{ "pure_storage_volume": | ||
#ensure either "present" or "absent" | ||
ensure => "present", | ||
volume_name => "test_agent_volume", | ||
volume_size => "1.0G", | ||
device_url => $device_url, | ||
} | ||
hostconfig{ "pure_storage_host": | ||
ensure => "present", | ||
host_name => "test-agent-host", | ||
host_iqnlist => ["iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03h","iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e0i"], | ||
device_url => $device_url, | ||
} | ||
connection{ "pure_storage_connection": | ||
ensure => "present", | ||
host_name => "test-agent-host", | ||
volume_name => "test_agent_volume", | ||
$device_url = 'https://pureuser:******@cloud-dev-405-a12-02.puretec.purestorage.com' | ||
|
||
volume{ 'pure_storage_volume': | ||
#ensure either 'present' or 'absent' | ||
ensure => 'present', | ||
volume_name => 'test_agent_volume', | ||
volume_size => '1.0G', | ||
device_url => $device_url, | ||
} | ||
hostconfig{ 'pure_storage_host': | ||
ensure => 'present', | ||
host_name => 'test-agent-host', | ||
host_iqnlist => ['iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03h','iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e0i'], | ||
device_url => $device_url, | ||
} | ||
connection{ 'pure_storage_connection': | ||
ensure => 'present', | ||
host_name => 'test-agent-host', | ||
volume_name => 'test_agent_volume', | ||
#Added dependency on volume and host resource types | ||
#to be present, other wise connection will fail. | ||
require => [Volume['pure_storage_volume'], | ||
Hostconfig['pure_storage_host'] | ||
], | ||
device_url => $device_url, | ||
} | ||
require => [Volume['pure_storage_volume'], | ||
Hostconfig['pure_storage_host'] | ||
], | ||
device_url => $device_url, | ||
} | ||
} | ||
#Example of Puppet Apply | ||
node 'puppet.puretec.purestorage.com'{ #--> This is master vm name | ||
#Note: device_url is MANDATORY here. | ||
$device_url = 'https://pureuser:******@cloud-dev-405-a12-02.puretec.purestorage.com' | ||
$device_url = 'https://pureuser:******@cloud-dev-405-a12-02.puretec.purestorage.com' | ||
|
||
volume{ "pure_storage_volume": | ||
#ensure either "present" or "absent" | ||
ensure => "present", | ||
volume_name => "test_apply_volume", | ||
volume_size => "1.0G", | ||
device_url => $device_url, | ||
} | ||
hostconfig{ "pure_storage_host": | ||
ensure => "present", | ||
host_name => "test-apply-host", | ||
host_iqnlist => ["iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03j","iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03k"], | ||
device_url => $device_url, | ||
} | ||
connection{ "pure_storage_connection": | ||
ensure => "present", | ||
host_name => "test-apply-host", | ||
volume_name => "test_apply_volume", | ||
volume{ 'pure_storage_volume': | ||
#ensure either 'present' or 'absent' | ||
ensure => 'present', | ||
volume_name => 'test_apply_volume', | ||
volume_size => '1.0G', | ||
device_url => $device_url, | ||
} | ||
hostconfig{ 'pure_storage_host': | ||
ensure => 'present', | ||
host_name => 'test-apply-host', | ||
host_iqnlist => ['iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03j','iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03k'], | ||
device_url => $device_url, | ||
} | ||
connection{ 'pure_storage_connection': | ||
ensure => 'present', | ||
host_name => 'test-apply-host', | ||
volume_name => 'test_apply_volume', | ||
#Added dependency on volume and host resource types | ||
#to be present, other wise connection will fail. | ||
require => [Volume['pure_storage_volume'], | ||
Hostconfig['pure_storage_host'] | ||
], | ||
device_url => $device_url, | ||
} | ||
require => [Volume['pure_storage_volume'], | ||
Hostconfig['pure_storage_host'] | ||
], | ||
device_url => $device_url, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
node 'cloud-dev-405-a12-02.puretec.purestorage.com' { | ||
connection{ "pure_storage_connection": | ||
ensure => "absent", | ||
host_name => "test-host", | ||
volume_name => "test_02", | ||
} | ||
} | ||
|
||
connection{ 'pure_storage_connection': | ||
ensure => 'absent', | ||
host_name => 'test-host', | ||
volume_name => 'test_02', | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
node 'cloud-dev-405-a12-02.puretec.purestorage.com' { | ||
hostconfig{ "pure_storage_host": | ||
ensure => "absent", | ||
host_name => "test-host", | ||
host_iqnlist => "iqn.1994-04.jp.co.hitachi:rsd.d9s.t.10103.0e02a", | ||
} | ||
} | ||
node 'cloud-dev-405-a12-02.puretec.purestorage.com' { | ||
|
||
hostconfig{ 'pure_storage_host': | ||
ensure => 'absent', | ||
host_name => 'test-host', | ||
host_iqnlist => 'iqn.1994-04.jp.co.hitachi:rsd.d9s.t.10103.0e02a', | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
node 'cloud-dev-405-a12-02.puretec.purestorage.com' { | ||
volume{ "pure_storage_volume": | ||
ensure => "absent", | ||
volume_name => "test_02", | ||
volume_size => "1.0G", | ||
node 'cloud-dev-405-a12-02.puretec.purestorage.com' { | ||
|
||
volume{ 'pure_storage_volume': | ||
ensure => 'absent', | ||
volume_name => 'test_02', | ||
volume_size => '1.0G', | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,87 @@ | ||
#Example of Puppet Device | ||
node 'cloud-dev-405-a12-02.puretec.purestorage.com' { #--> This is Device name | ||
volume{ "pure_storage_volume": | ||
volume{ 'pure_storage_volume': | ||
#ensure either "present" or "absent" | ||
ensure => "present", | ||
volume_name => "test_device_volume_1", | ||
volume_size => "2.5G", | ||
} | ||
hostconfig{ "pure_storage_host": | ||
ensure => "present", | ||
host_name => "test-device-host", | ||
host_iqnlist => ["iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03f","iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03g"], | ||
ensure => 'present', | ||
volume_name => 'test_device_volume_1', | ||
volume_size => '2.5G', | ||
} | ||
connection{ "pure_storage_connection": | ||
ensure => "present", | ||
host_name => "test-device-host", | ||
volume_name => "test_device_volume_1", | ||
#Added dependency on volume and host resource types | ||
#to be present, other wise connection will fail. | ||
require => [Volume['pure_storage_volume'], | ||
Hostconfig['pure_storage_host'] | ||
], | ||
hostconfig{ 'pure_storage_host': | ||
ensure => 'present', | ||
host_name => 'test-device-host', | ||
host_iqnlist => ['iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03f','iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03g'], | ||
} | ||
connection{ 'pure_storage_connection': | ||
ensure => 'present', | ||
host_name => 'test-device-host', | ||
volume_name => 'test_device_volume_1', | ||
#Added dependency on volume and host resource types | ||
#to be present, other wise connection will fail. | ||
require => [Volume['pure_storage_volume'], | ||
Hostconfig['pure_storage_host'] | ||
], | ||
} | ||
|
||
} | ||
#Example of Puppet Agent | ||
node 'calsoft-puppet-agent.puretec.purestorage.com'{ #--> This is Agent vm name | ||
#Note : device_url is MANDATORY here. | ||
$device_url = 'https://pureuser:[email protected]' | ||
volume{ "pure_storage_volume": | ||
|
||
volume{ 'pure_storage_volume': | ||
#ensure either "present" or "absent" | ||
ensure => "present", | ||
volume_name => "test_agent_volume_1", | ||
volume_size => "1.0G", | ||
device_url => $device_url, | ||
} | ||
hostconfig{ "pure_storage_host": | ||
ensure => "present", | ||
host_name => "test-agent-host", | ||
host_iqnlist => ["iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03h","iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e0i"], | ||
device_url => $device_url, | ||
} | ||
connection{ "pure_storage_connection": | ||
ensure => "present", | ||
host_name => "test-agent-host", | ||
volume_name => "test_agent_volume_1", | ||
ensure => 'present', | ||
volume_name => 'test_agent_volume_1', | ||
volume_size => '1.0G', | ||
device_url => $device_url, | ||
} | ||
hostconfig{ 'pure_storage_host': | ||
ensure => 'present', | ||
host_name => 'test-agent-host', | ||
host_iqnlist => ['iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03h','iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e0i'], | ||
device_url => $device_url, | ||
} | ||
connection{ 'pure_storage_connection': | ||
ensure => 'present', | ||
host_name => 'test-agent-host', | ||
volume_name => 'test_agent_volume_1', | ||
#Added dependency on volume and host resource types | ||
#to be present, other wise connection will fail. | ||
require => [Volume['pure_storage_volume'], | ||
Hostconfig['pure_storage_host'] | ||
], | ||
#Mandatory only for Puppet Apply and Agent approach. | ||
device_url => $device_url, | ||
} | ||
require => [Volume['pure_storage_volume'], | ||
Hostconfig['pure_storage_host'] | ||
], | ||
#Mandatory only for Puppet Apply and Agent approach. | ||
device_url => $device_url, | ||
} | ||
} | ||
#Example of Puppet Apply | ||
node 'puppet.puretec.purestorage.com'{ #--> This is master vm name | ||
#Note: device_url is MANDATORY here. | ||
$device_url = 'https://pureuser:[email protected]' | ||
|
||
volume{ "pure_storage_volume": | ||
volume{ 'pure_storage_volume': | ||
#ensure either "present" or "absent" | ||
ensure => "present", | ||
volume_name => "test_apply_volume_1", | ||
volume_size => "1.0G", | ||
device_url => $device_url, | ||
} | ||
hostconfig{ "pure_storage_host": | ||
ensure => "present", | ||
host_name => "test-apply-host", | ||
host_iqnlist => ["iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03j","iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03k"], | ||
device_url => $device_url, | ||
} | ||
connection{ "pure_storage_connection": | ||
ensure => "present", | ||
host_name => "test-apply-host", | ||
volume_name => "test_apply_volume_1", | ||
ensure => 'present', | ||
volume_name => 'test_apply_volume_1', | ||
volume_size => '1.0G', | ||
device_url => $device_url, | ||
} | ||
hostconfig{ 'pure_storage_host': | ||
ensure => 'present', | ||
host_name => 'test-apply-host', | ||
host_iqnlist => ['iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03j','iqn.1994-04.jp.co.pure:rsd.d9s.t.10103.0e03k'], | ||
device_url => $device_url, | ||
} | ||
connection{ 'pure_storage_connection': | ||
ensure => 'present', | ||
host_name => 'test-apply-host', | ||
volume_name => 'test_apply_volume_1', | ||
#Added dependency on volume and host resource types | ||
#to be present, other wise connection will fail. | ||
require => [Volume['pure_storage_volume'], | ||
Hostconfig['pure_storage_host'] | ||
], | ||
#Mandatory only for Puppet Apply and Agent approach. | ||
device_url => $device_url, | ||
} | ||
require => [Volume['pure_storage_volume'], | ||
Hostconfig['pure_storage_host'] | ||
], | ||
#Mandatory only for Puppet Apply and Agent approach. | ||
device_url => $device_url, | ||
} | ||
} |