foreman_specifictemplate 0.0.6 → 0.0.7
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d868594b3803b7d01e11cf6655041e546d91554
|
|
4
|
+
data.tar.gz: 261f6bfbfaefa26b88110624c4b243c0c6af7b38
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fd7e7a95cf4d6ab5b68605ec9486423c5cf36008bd74405b35a79911fc94f037d8f15050e208757ed1c69a5ba21510b7883bfac59663c832238ae4c354b982ac
|
|
7
|
+
data.tar.gz: a9d818c9dc17a98babeb7fe10f803e704c0cb8dea556d175e455afd89f995829e9154fb4fb1a6854ca81288176cd539ef3aed84e5f03b3058f9a6a1826112f1b
|
data/README.md
CHANGED
|
@@ -17,12 +17,16 @@ for how to install Foreman plugins.
|
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
19
19
|
|
|
20
|
+
**NB**: This plugin only allows deploying PXE templates for hosts currently in build mode.
|
|
21
|
+
|
|
20
22
|
```
|
|
21
23
|
# Deploy 'PXELinux default local boot' for this host
|
|
22
|
-
curl
|
|
24
|
+
curl "http://foreman.example.com/specifictemplate/set?template_name=PXELinux%20default%20local%20boot"
|
|
25
|
+
curl "http://foreman.example.com/unattended/specifictemplate?template_name=PXELinux%20default%20local%20boot"
|
|
23
26
|
|
|
24
27
|
# Restore this host to the default PXE template
|
|
25
|
-
curl
|
|
28
|
+
curl http://foreman.example.com/specifictemplate/set
|
|
29
|
+
curl http://foreman.example.com/unattended/specifictemplate
|
|
26
30
|
```
|
|
27
31
|
|
|
28
32
|
## Copyright
|
data/config/routes.rb
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
Rails.application.routes.draw do
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
get 'unattended/specifictemplate',
|
|
3
|
+
:controller => 'specifictemplate',
|
|
4
|
+
:action => 'update',
|
|
5
|
+
:format => 'text'
|
|
6
|
+
|
|
5
7
|
get 'specifictemplate/set',
|
|
6
8
|
:controller => 'specifictemplate',
|
|
7
9
|
:action => 'update',
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_specifictemplate
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Olofsson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-09-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -64,6 +64,7 @@ files:
|
|
|
64
64
|
- LICENSE
|
|
65
65
|
- README.md
|
|
66
66
|
- Rakefile
|
|
67
|
+
- app/controllers/concerns/unattended_controller_extensions.rb
|
|
67
68
|
- app/controllers/specifictemplate_controller.rb
|
|
68
69
|
- config/routes.rb
|
|
69
70
|
- lib/foreman_specifictemplate.rb
|
|
@@ -91,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
91
92
|
version: '0'
|
|
92
93
|
requirements: []
|
|
93
94
|
rubyforge_project:
|
|
94
|
-
rubygems_version: 2.6.
|
|
95
|
+
rubygems_version: 2.6.12
|
|
95
96
|
signing_key:
|
|
96
97
|
specification_version: 4
|
|
97
98
|
summary: This plug-in adds support for choosing arbitrary PXE template in The Foreman
|