emconvert 1.0.2 → 1.0.3
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/Gemfile.lock +1 -1
- data/README.md +39 -9
- data/lib/emconvert/converter.rb +3 -3
- data/lib/emconvert/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a37c2d36e5768091f1f871a8cce652db3d21974
|
4
|
+
data.tar.gz: 3aa58791d4ea3e02e25b58b4ddb5cf68ba314261
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61063ef67dd5cb50bacda9a44e4ac82046465e199a3e28b1e3ffc4b5e328cf16e5fda071a2e9bce925a7fc5b507951bddde3221c082dfd8a52050651a83ec22c
|
7
|
+
data.tar.gz: 08ed114e1ba31a88a9712db911b4381a8fbceaac4ee329f9e155991dcd0db8f29d7a4fd119eab91a106ef2e47e997b51a7855314fac3bd847dd9cc1bb23382b6
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,27 +1,26 @@
|
|
1
1
|
Module converter
|
2
2
|
=================
|
3
3
|
|
4
|
-
[Enterprise Modules](https://www.enterprisemodules.com) provides a set of high-quality modules to manage Oracle databases and Oracle WebLogic installations. These modules originated from the original
|
4
|
+
[Enterprise Modules](https://www.enterprisemodules.com) provides a set of high-quality modules to manage Oracle databases and Oracle WebLogic installations. These modules originated from the original Public Domain modules, but where changed to:
|
5
5
|
- Add better documentation
|
6
6
|
- Add better error checking
|
7
7
|
- Add more enterprise options
|
8
8
|
|
9
9
|
## Why a name change
|
10
10
|
|
11
|
-
Puppet doesn't support namespaces. So for
|
11
|
+
Puppet doesn't support namespaces. So for Puppet to differentiate between the unsupported Public Domain modules and the supported modules from [Enterprise Modules](https://www.enterprisemodules.com), we needed different names.
|
12
12
|
|
13
13
|
## Automatically change names
|
14
14
|
|
15
|
-
|
15
|
+
The utility in this repository, automatically converts your Puppet class from using the Open Source Oracle and WebLogic modules into using the supported modules from Enterprise Modules.
|
16
16
|
|
17
17
|
## Installation
|
18
18
|
|
19
19
|
This utility is distributed as a Ruby Gem. So to install it, you'll need a running ruby environment. To install this gem, enter:
|
20
20
|
|
21
21
|
```sh
|
22
|
-
$ gem install
|
23
|
-
|
24
|
-
1 gem installed
|
22
|
+
$ gem install emconnvert
|
23
|
+
emconvert (1.0.0) installed.
|
25
24
|
````
|
26
25
|
|
27
26
|
## Usage
|
@@ -33,8 +32,11 @@ $ emconvert [-v] [-b] wildcard_file
|
|
33
32
|
```
|
34
33
|
|
35
34
|
Where the options are:
|
36
|
-
|
37
|
-
|
35
|
+
|
36
|
+
* `-v` or `-verbose` Show a log of all files being processed and changed
|
37
|
+
* `-b` or `--backup` Make a backup of a file, when it is changed
|
38
|
+
|
39
|
+
Default the converter makes a backup, but doesn't log its activity.
|
38
40
|
|
39
41
|
## Examples
|
40
42
|
|
@@ -44,4 +46,32 @@ Here is an example:
|
|
44
46
|
$ emconvert -v -b my_module/**/*.pp
|
45
47
|
```
|
46
48
|
|
47
|
-
This command will check all files with extension `.pp` and change all calls and references to the Oracle and Weblogic modules to calls and references to the puppet modules provided by Enterprise Modules.
|
49
|
+
This command will check all files with extension `.pp` and change all calls and references to the Oracle and Weblogic modules to calls and references to the puppet modules provided by Enterprise Modules.
|
50
|
+
|
51
|
+
## What to convert
|
52
|
+
|
53
|
+
Normaly there are several places where the full names are used. In your puppet files - the files with extension `.pp` - of course. And in your `hiera` files. Normaly your `hiera` files have an extension `.yaml`. So you'll have to run the `emconvert` over both the set of files. An example:
|
54
|
+
|
55
|
+
```
|
56
|
+
$ emconvert -v -b all_my_puppet_code/**/*.pp # Convert all the puppet files
|
57
|
+
$ emconvert -v -b all_my_hiera_data/**/*.yaml # Convert all the hiera data
|
58
|
+
```
|
59
|
+
|
60
|
+
## After conversion
|
61
|
+
|
62
|
+
After you have converted your modules, you can remove the obsolete Public Domain modules. The are:
|
63
|
+
|
64
|
+
- `hajee-easy_type`
|
65
|
+
- `biemond-oradb`
|
66
|
+
- `hajee-oracle`
|
67
|
+
- `biemond-orawls`
|
68
|
+
- `biemond-orautils`
|
69
|
+
|
70
|
+
And install the Enterprise Module supported modules:
|
71
|
+
|
72
|
+
- `enterprisemodules-easy_type`
|
73
|
+
- [`enterprisemodules-ora_install`](https://www.enterprisemodules.com/shop/products/puppet-ora_install-module)
|
74
|
+
- [`enterprisemodules-ora_config`](https://www.enterprisemodules.com/shop/products/puppet-ora_config-module)
|
75
|
+
- [`enterprisemodules-wls_install`](https://www.enterprisemodules.com/shop/products/puppet-wls_install-module)
|
76
|
+
- [`enterprisemodules-wls_config`](https://www.enterprisemodules.com/shop/products/puppet-wls_config-module)
|
77
|
+
|
data/lib/emconvert/converter.rb
CHANGED
@@ -49,9 +49,9 @@ class Converter
|
|
49
49
|
change from:'orawls::utils::orainst', to:'wls_install::utils::orainst'
|
50
50
|
change from:'orawls::utils::rcu', to:'wls_install::utils::rcu'
|
51
51
|
change from:'orawls::utils::webtier', to:'wls_install::utils::webtier'
|
52
|
-
change from:'
|
53
|
-
change from:'
|
54
|
-
change from:'
|
52
|
+
change from:'orautils::support::files', to:'wls_install::support::files'
|
53
|
+
change from:'orautils::support::nodemanagerautostart',to:'wls_install::support::nodemanagerautostart'
|
54
|
+
change from:'orautils::support::params', to:'wls_install::support::params'
|
55
55
|
@content
|
56
56
|
end
|
57
57
|
|
data/lib/emconvert/version.rb
CHANGED