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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -8
  3. data/lib/cleanfb/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 652b65430680d54c1975d383e37c8e3e23d966d3
4
- data.tar.gz: f54f195e47416835a8c235484a78c53808c2821e
3
+ metadata.gz: e1664f2aa9867a262778380e713ceeb36062af83
4
+ data.tar.gz: cdb57002fc04a2d101512b0fb2605386b576177b
5
5
  SHA512:
6
- metadata.gz: e118f4606a28d75ce9feb5d4b67b89063dac447b460c898962e7a4b8ee9267924e50d84d80a5dab9a4991f8459b75a98dceca43d36ef412a0be5b1fecb3114a5
7
- data.tar.gz: 556c32d0830add1e27ab6c07814e093f7b16c7a18a250e259745b87ce95221742831232e091bf2c71306cff5c3926fb47daf1e7ffa627bbbc542a1d648e5c1b8
6
+ metadata.gz: e295db6d48ed3af774af0168469003d4b6aaefc9b0ec466ae1c93cec287f10a16d2585f7ae65586e32315bacb7ac7f95bdbb1e5fdb2a2d497b1fb331cc5c1ce6
7
+ data.tar.gz: 3bf0cc74a22cb04485ada015c83335ae34f1bead2145fdfae2d336f409c47edd4734e63cf1306d52fc5f128d5e95c125fda37c7b43ab10d31c566e5c833177c7
data/README.md CHANGED
@@ -1,8 +1,13 @@
1
1
  # Cleanfb
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cleanfb`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Delete this and the text above, and describe your gem
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
- TODO: Write usage instructions here
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
- ## Development
57
+ To restore a previous saved configuration issue the following command
28
58
 
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
- ## Contributing
62
+ The current configuration gets backed up and the selected configuration is restored as the primary configuration.
34
63
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/cleanfb.
64
+ The restored configuration will be obtained by the host from the server on the next Puppet run.
36
65
 
@@ -1,3 +1,3 @@
1
1
  module Cleanfb
2
- VERSION = "0.2.1.7"
2
+ VERSION = "0.2.1.8"
3
3
  end
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.7
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-21 00:00:00.000000000 Z
11
+ date: 2016-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler