foreman_specifictemplate 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2070a1537aa93375ca77a16c0e96de2594bddd4b
4
- data.tar.gz: 83d507a61bf420703190bc30ac07111054546579
3
+ metadata.gz: 6d868594b3803b7d01e11cf6655041e546d91554
4
+ data.tar.gz: 261f6bfbfaefa26b88110624c4b243c0c6af7b38
5
5
  SHA512:
6
- metadata.gz: 6562231212835d63c74caca7e2591207e37b6d8cb0aa1aa3d0ae156b6af08708a048b421278c6fbb4924ae8e3889d41094b0b8f295d719203718ffd9f09c3557
7
- data.tar.gz: 9f5a6192298e2c55d8243f4e2a470f6932ac4be6ef1ca6101ffd896b5f30f5692c37cb0e1a0b6d8108c14c69d59af5b5f54d5f64febcc69fdb3e6dc3fe08c324
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 -X PUT "http://foreman.example.com/specifictemplate/PXELinux default local boot"
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 -X DELETE http://foreman.example.com/specifictemplate
28
+ curl http://foreman.example.com/specifictemplate/set
29
+ curl http://foreman.example.com/unattended/specifictemplate
26
30
  ```
27
31
 
28
32
  ## Copyright
@@ -0,0 +1,5 @@
1
+ module ForemanSpecifictemplate
2
+ module UnattendedControllerExtensions
3
+ extend ActiveSupport::Concerns
4
+ end
5
+ end
@@ -1,7 +1,9 @@
1
1
  Rails.application.routes.draw do
2
- # get 'specifictemplate',
3
- # :controller => 'specifictemplate',
4
- # :action => 'check'
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',
@@ -1,3 +1,3 @@
1
1
  module ForemanSpecificTemplate
2
- VERSION = '0.0.6'.freeze
2
+ VERSION = '0.0.7'.freeze
3
3
  end
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.6
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-02-28 00:00:00.000000000 Z
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.8
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