cleanfb 0.2.1.7 → 0.2.1.8
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 +4 -4
- data/README.md +37 -8
- data/lib/cleanfb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1664f2aa9867a262778380e713ceeb36062af83
|
4
|
+
data.tar.gz: cdb57002fc04a2d101512b0fb2605386b576177b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e295db6d48ed3af774af0168469003d4b6aaefc9b0ec466ae1c93cec287f10a16d2585f7ae65586e32315bacb7ac7f95bdbb1e5fdb2a2d497b1fb331cc5c1ce6
|
7
|
+
data.tar.gz: 3bf0cc74a22cb04485ada015c83335ae34f1bead2145fdfae2d336f409c47edd4734e63cf1306d52fc5f128d5e95c125fda37c7b43ab10d31c566e5c833177c7
|
data/README.md
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
# Cleanfb
|
2
2
|
|
3
|
-
|
3
|
+
Cleanfb is a tool that cleans a filebucket on a Puppet server by backing up files to a saved directory.
|
4
|
+
This tool is intended to be used alongside a Ruby script, capture_config, that captures the configuration of a machine and checks it against copies sent to a Puppet server.
|
4
5
|
|
5
|
-
|
6
|
+
If a configuration is removed from the Puppet node, a new copy is automatically retrieved from the Puppet server's filebucket.
|
7
|
+
|
8
|
+
Cleanfb allows out of date configurations to be backed up on the server and for the Puppet node to capture a current configuration.
|
9
|
+
|
10
|
+
Old configurations can also be restored using cleanfb.
|
6
11
|
|
7
12
|
## Installation
|
8
13
|
|
@@ -22,15 +27,39 @@ Or install it yourself as:
|
|
22
27
|
|
23
28
|
## Usage
|
24
29
|
|
25
|
-
|
30
|
+
cleanfb [host] [options]
|
31
|
+
|
32
|
+
Backup all files associated with the host on the server's filebucket.
|
33
|
+
-y | answer yes to all
|
34
|
+
--help | show help message
|
35
|
+
|
36
|
+
cleanfb restore [file] [options]
|
37
|
+
|
38
|
+
Backup all files associated with the host on the server's filebucket,
|
39
|
+
and restore the given configuration file.
|
40
|
+
-y | answer yes to all
|
41
|
+
--help | show help message
|
42
|
+
|
43
|
+
###Updating Configuration
|
44
|
+
|
45
|
+
Clean the configuration for a host
|
46
|
+
|
47
|
+
$ cleanfb hostname
|
48
|
+
|
49
|
+
The configuration is now backed up on the server at /root/saved_configs/hostname/date_time_hostname_configuration.yaml
|
50
|
+
|
51
|
+
A new configuration will be obtained for the host on the next Puppet run.
|
52
|
+
|
53
|
+
|
54
|
+
###Restoring a previous Configuration
|
55
|
+
|
26
56
|
|
27
|
-
|
57
|
+
To restore a previous saved configuration issue the following command
|
28
58
|
|
29
|
-
|
59
|
+
$ cleanfb restore /root/saved_configs/hostname/date_time_host_configuration.yaml
|
30
60
|
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
61
|
|
33
|
-
|
62
|
+
The current configuration gets backed up and the selected configuration is restored as the primary configuration.
|
34
63
|
|
35
|
-
|
64
|
+
The restored configuration will be obtained by the host from the server on the next Puppet run.
|
36
65
|
|
data/lib/cleanfb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cleanfb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.1.
|
4
|
+
version: 0.2.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lhoffl
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|