foreman_templates 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -23
- data/lib/foreman_templates/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51de5fa77409a6ab12be3efe3f653215118edad9
|
4
|
+
data.tar.gz: 10d6f8bcf9680670d7fee1ff8b40278f8402f22a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e63a4884b56adc0157813d20d3ead11c532046ff641f6d382cb032273bb6a41d33daa10091edc1247aa3093233ffe95cc1f47792b29400bde06a62aced4b89f5
|
7
|
+
data.tar.gz: b6c7f79969381f0bfd46203ee974dca796966a9fe36c9e62f4a1a113619eac07a229b1ca5a6dfa6d297aea45eb29cbb318e28df4000ac0b90f8fdd33bde50fbd
|
data/README.md
CHANGED
@@ -1,36 +1,33 @@
|
|
1
1
|
# foreman\_templates
|
2
2
|
|
3
3
|
This plugin will sync the contents of the Foreman Community Templates
|
4
|
-
[repository](https://github.com/theforeman/community-templates/)
|
5
|
-
Foreman instance
|
4
|
+
[repository](https://github.com/theforeman/community-templates/) (or a git repo
|
5
|
+
of your choice) to your local Foreman instance
|
6
6
|
|
7
|
-
|
7
|
+
## Installation
|
8
8
|
|
9
|
-
|
9
|
+
See [How_to_Install_a_Plugin](http://projects.theforeman.org/projects/foreman/wiki/How_to_Install_a_Plugin)
|
10
|
+
for how to install Foreman plugins
|
10
11
|
|
11
|
-
|
12
|
-
gem 'foreman_templates'
|
13
|
-
```
|
12
|
+
The gem name is "foreman_templates".
|
14
13
|
|
15
|
-
|
14
|
+
RPM users can install the "ruby193-rubygem-foreman_templates" or "rubygem-foreman_templates" packages.
|
16
15
|
|
17
|
-
|
18
|
-
gem 'foreman_templates', :git => "https://github.com/GregSutcliffe/foreman_templates.git"
|
19
|
-
```
|
16
|
+
## Latest code
|
20
17
|
|
21
|
-
|
18
|
+
You can get the develop branch of the plugin by specifying your Gemfile in this way:
|
22
19
|
|
23
|
-
|
20
|
+
gem 'foreman_templates', :git => "https://github.com/theforeman/foreman_templates.git"
|
24
21
|
|
25
|
-
|
22
|
+
## Configuration
|
26
23
|
|
27
24
|
There is UI no configuration at this time.
|
28
25
|
|
29
|
-
|
26
|
+
## Usage
|
30
27
|
|
31
28
|
The plugin provides a Rake task to import the templates. To use it, simply do
|
32
29
|
|
33
|
-
|
30
|
+
foreman-rake templates:sync
|
34
31
|
|
35
32
|
This will create a set of templates named "Community ...." (or update them if they
|
36
33
|
already exist). Audit history is preserved, but no comment is currently added for
|
@@ -49,31 +46,31 @@ template will be automatically associated with the OS
|
|
49
46
|
* dirname => The directory within the git tree containing the templates [/]
|
50
47
|
* filter => Import names matching this regex (case-insensitive; snippets are not filtered)
|
51
48
|
|
52
|
-
|
49
|
+
## Examples
|
53
50
|
|
54
51
|
Just import all the templates in from the default repo
|
55
52
|
|
56
|
-
rake templates:sync
|
53
|
+
foreman-rake templates:sync
|
57
54
|
|
58
55
|
Import all templates from a custom repo, with a different prefix
|
59
56
|
|
60
|
-
rake templates:sync repo="http://github.com/GregSutcliffe/community-templates" prefix="Greg"
|
57
|
+
foreman-rake templates:sync repo="http://github.com/GregSutcliffe/community-templates" prefix="Greg"
|
61
58
|
|
62
59
|
Import templates matching the name "Fedora"
|
63
60
|
|
64
|
-
rake templates:sync filter='fedora'
|
61
|
+
foreman-rake templates:sync filter='fedora'
|
65
62
|
|
66
63
|
Import templates from a subsection of a git repo:
|
67
64
|
|
68
|
-
rake templates:sync repo="http://github.com/GregSutcliffe/community-templates" dirname='/subdir'
|
65
|
+
foreman-rake templates:sync repo="http://github.com/GregSutcliffe/community-templates" dirname='/subdir'
|
69
66
|
|
70
|
-
|
67
|
+
## TODO
|
71
68
|
|
72
69
|
* Allow user to filter to a specific subset of templates
|
73
70
|
* Add associations by template family
|
74
71
|
* Add a button to the UI with Deface to run the rake task
|
75
72
|
|
76
|
-
|
73
|
+
## Copyright
|
77
74
|
|
78
75
|
Copyright (c) 2013 Greg Sutcliffe
|
79
76
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_templates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Sutcliffe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diffy
|
@@ -32,14 +32,14 @@ extra_rdoc_files:
|
|
32
32
|
- LICENSE
|
33
33
|
- README.md
|
34
34
|
files:
|
35
|
-
- lib/foreman_templates/version.rb
|
36
|
-
- lib/foreman_templates/engine.rb
|
37
|
-
- lib/templates.rake
|
38
35
|
- lib/foreman_templates.rb
|
36
|
+
- lib/templates.rake
|
37
|
+
- lib/foreman_templates/engine.rb
|
38
|
+
- lib/foreman_templates/version.rb
|
39
39
|
- LICENSE
|
40
40
|
- Rakefile
|
41
41
|
- README.md
|
42
|
-
homepage: http://github.com/
|
42
|
+
homepage: http://github.com/theforeman/foreman_templates
|
43
43
|
licenses:
|
44
44
|
- GPL-3
|
45
45
|
metadata: {}
|