oneacct-export 0.4.6 → 0.5.0
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/.circleci/config.yml +40 -0
- data/README.md +34 -33
- data/Rakefile +3 -15
- data/docker/Dockerfile_oneacct-export +49 -0
- data/docker/Dockerfile_sidekiq +14 -0
- data/docker/bin/configuration.sh +11 -0
- data/docker/bin/oneacct-wrapper.sh +6 -0
- data/docker/bin/sidekiq-wrapper.sh +6 -0
- data/docker/config/conf.yml +73 -0
- data/lib/oneacct_exporter/version.rb +1 -1
- metadata +10 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad91a0345fee62abbe9f35d2d80c7825b9086fd8
|
|
4
|
+
data.tar.gz: 593dfc69ba583587902d759ba689618db9230ad7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 444f35564d46a870f321da7153966a0357a9ab1fa6dd95c1f813e280fb086884b1fd1f77ad172d910537bcc86317cb1f6d269b4fcb1ef5a95fda072954696065
|
|
7
|
+
data.tar.gz: 1aa96aa47c7affbbb5293451a1e30e523a0e7746fa89e44adaa3723e7b2cdf09e6d8d34f3d1a773706783ebf78bb6c685f892fb013c13b8e217ae8671ead8a2f
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
jobs:
|
|
3
|
+
build:
|
|
4
|
+
branches:
|
|
5
|
+
ignore:
|
|
6
|
+
- /.*/
|
|
7
|
+
docker:
|
|
8
|
+
- image: docker:stable
|
|
9
|
+
working_directory: /root/oneacct-export
|
|
10
|
+
steps:
|
|
11
|
+
- run: apk add --no-cache git openssh
|
|
12
|
+
- checkout
|
|
13
|
+
- setup_remote_docker
|
|
14
|
+
- run: |
|
|
15
|
+
git config --global --replace-all versionsort.prereleasesuffix ".alpha"
|
|
16
|
+
git config --global --add versionsort.prereleasesuffix ".beta"
|
|
17
|
+
- run: |
|
|
18
|
+
TAG=${CIRCLE_TAG#v}
|
|
19
|
+
BRANCH=${TAG/%.*/.x}
|
|
20
|
+
VERSION=${TAG}
|
|
21
|
+
LATEST=$(git tag --sort=-version:refname | head -n 1)
|
|
22
|
+
|
|
23
|
+
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
|
24
|
+
|
|
25
|
+
docker build --build-arg branch=$BRANCH --build-arg version="$VERSION" -t oneacctexport/oneacct-export:$TAG -f docker/Dockerfile_oneacct-export .
|
|
26
|
+
docker push oneacctexport/oneacct-export:$TAG
|
|
27
|
+
docker build --build-arg branch=$BRANCH --build-arg version="$VERSION" -t oneacctexport/sidekiq:$TAG -f docker/Dockerfile_sidekiq .
|
|
28
|
+
docker push oneacctexport/sidekiq:$TAG
|
|
29
|
+
|
|
30
|
+
if [ "$LATEST" == "$CIRCLE_TAG" ]; then
|
|
31
|
+
docker tag oneacctexport/oneacct-export:$TAG oneacctexport/oneacct-export:latest
|
|
32
|
+
docker push oneacctexport/oneacct-export:latest
|
|
33
|
+
docker tag oneacctexport/sidekiq:$TAG oneacctexport/sidekiq:latest
|
|
34
|
+
docker push oneacctexport/sidekiq:latest
|
|
35
|
+
fi
|
|
36
|
+
deployment:
|
|
37
|
+
fake_deploy_for_cci2:
|
|
38
|
+
tag: /v.*/
|
|
39
|
+
commands:
|
|
40
|
+
- echo "make tags run in 2.0"
|
data/README.md
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
# OneacctExport
|
|
2
2
|
Exporting OpenNebula accounting data.
|
|
3
3
|
|
|
4
|
-
[](http://travis-ci.org/the-oneacct-export-project/oneacct-export)
|
|
5
|
+
[](https://gemnasium.com/the-oneacct-export-project/oneacct-export)
|
|
6
|
+
[](https://rubygems.org/gems/oneacct-export)
|
|
7
|
+
[](https://codeclimate.com/github/the-oneacct-export-project/oneacct-export)
|
|
8
|
+
[](https://hub.docker.com/r/oneacctexport/oneacct-export/)
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
##Requirements
|
|
11
|
+
## Requirements
|
|
11
12
|
* Ruby >= 2.0
|
|
12
13
|
* Rubygems
|
|
13
14
|
* Redis server (doesn't have to be present on the same machine)
|
|
14
15
|
* OpenNebula >= 4.4 (doesn't have to be present on the same machine)
|
|
15
16
|
|
|
16
|
-
##Installation
|
|
17
|
-
###From distribution specific packages
|
|
17
|
+
## Installation
|
|
18
|
+
### From distribution specific packages
|
|
18
19
|
Distribution specific packages can be created with
|
|
19
|
-
[omnibus packaging for OneacctExport](https://github.com/
|
|
20
|
+
[omnibus packaging for OneacctExport](https://github.com/the-oneacct-export-project/omnibus-oneacct-export).
|
|
20
21
|
When installing via packages you don't have to install neither ruby
|
|
21
22
|
nor rubygems. Packages contain embedded ruby and all the necessary gems
|
|
22
23
|
and libraries witch will not effect your system ruby, gems and libraries.
|
|
@@ -31,13 +32,13 @@ Currently supported distributions:
|
|
|
31
32
|
* CentOS 5.10
|
|
32
33
|
* CentOS 6.5
|
|
33
34
|
|
|
34
|
-
###From RubyGems.org
|
|
35
|
+
### From RubyGems.org
|
|
35
36
|
To install the most recent stable version
|
|
36
37
|
```bash
|
|
37
38
|
gem install oneacct-export
|
|
38
39
|
```
|
|
39
40
|
|
|
40
|
-
###From source (dev)
|
|
41
|
+
### From source (dev)
|
|
41
42
|
**Installation from source should never be your first choice! Especially, if you are not
|
|
42
43
|
familiar with RVM, Bundler, Rake and other dev tools for Ruby!**
|
|
43
44
|
|
|
@@ -46,20 +47,20 @@ familiar with RVM, Bundler, Rake and other dev tools for Ruby!**
|
|
|
46
47
|
To build and install the bleeding edge version from master
|
|
47
48
|
|
|
48
49
|
```bash
|
|
49
|
-
git clone git://github.com/
|
|
50
|
+
git clone git://github.com/the-oneacct-export-project/oneacct_export.git
|
|
50
51
|
cd oneacct_export
|
|
51
52
|
gem install bundler
|
|
52
53
|
bundle install
|
|
53
54
|
bundle exec rake spec
|
|
54
55
|
rake install
|
|
55
56
|
```
|
|
56
|
-
##Configuration
|
|
57
|
-
###Create a new user account
|
|
57
|
+
## Configuration
|
|
58
|
+
### Create a new user account
|
|
58
59
|
Create or use an existing `apel` user account which will be used to run
|
|
59
60
|
the export process. This account must be the same as the user account
|
|
60
61
|
used by the APEL SSM client.
|
|
61
62
|
|
|
62
|
-
###Create a configuration file for OneacctExport
|
|
63
|
+
### Create a configuration file for OneacctExport
|
|
63
64
|
Configuration file can be read by OneacctExport from these
|
|
64
65
|
three locations:
|
|
65
66
|
|
|
@@ -73,7 +74,7 @@ file you have to follow the division into three environments: `production`,
|
|
|
73
74
|
`development` and `test`. All the configuration options are described
|
|
74
75
|
in the example configuration file.
|
|
75
76
|
|
|
76
|
-
###Create a configuration file for Sidekiq
|
|
77
|
+
### Create a configuration file for Sidekiq
|
|
77
78
|
Sidekiq configuration file can be placed anywhere you want since you will provide
|
|
78
79
|
path to the configuration later during the Sidekiq start. How the Sidekiq
|
|
79
80
|
configuration should look like and what options you can use
|
|
@@ -84,7 +85,7 @@ The important thing is to set the same queue name in both
|
|
|
84
85
|
OneacctExport and Sidekiq configuration files. OneacctExport
|
|
85
86
|
is currently supporting adding jobs to only one queue.
|
|
86
87
|
|
|
87
|
-
###Create required directories
|
|
88
|
+
### Create required directories
|
|
88
89
|
```bash
|
|
89
90
|
mkdir -p /var/run/oneacct-export
|
|
90
91
|
chown apel:apel /var/run/oneacct-export
|
|
@@ -93,7 +94,7 @@ mkdir -p /var/log/oneacct-export
|
|
|
93
94
|
chown apel:apel /var/log/oneacct-export
|
|
94
95
|
```
|
|
95
96
|
|
|
96
|
-
###Configure RPC connection
|
|
97
|
+
### Configure RPC connection
|
|
97
98
|
RPC connection for OpenNebula can be configured in two ways:
|
|
98
99
|
|
|
99
100
|
* Via OneacctExport configuration file, option xml_rpc and its suboptions
|
|
@@ -106,7 +107,7 @@ RPC connection for OpenNebula can be configured in two ways:
|
|
|
106
107
|
System environment variable `ONE_XMLRPC` contains URL of OpenNebula RPC
|
|
107
108
|
gate. If empty, the same information can be stored in `~/.one/one_endpoint`.
|
|
108
109
|
|
|
109
|
-
###Configure vmcatcher IMAGE attribute inheritance in OpenNebula
|
|
110
|
+
### Configure vmcatcher IMAGE attribute inheritance in OpenNebula
|
|
110
111
|
In `oned.conf`:
|
|
111
112
|
~~~
|
|
112
113
|
INHERIT_IMAGE_ATTR = "VMCATCHER_EVENT_AD_MPURI"
|
|
@@ -116,7 +117,7 @@ INHERIT_IMAGE_ATTR = "VMCATCHER_EVENT_SL_CHECKSUM_SHA512"
|
|
|
116
117
|
INHERIT_IMAGE_ATTR = "VMCATCHER_EVENT_HV_VERSION"
|
|
117
118
|
~~~
|
|
118
119
|
|
|
119
|
-
###Configure benchmark host attributes in OpenNebula
|
|
120
|
+
### Configure benchmark host attributes in OpenNebula
|
|
120
121
|
In order to recognize and fill `BenchmarkType` and `Benchmark` APEL v0.4 fields,
|
|
121
122
|
two attributes have to be set for every host in OpenNebula:
|
|
122
123
|
* `BENCHMARK_TYPE` - represents benchmark's type. For example: `HEP-SPEC06`
|
|
@@ -127,17 +128,17 @@ Both attributes can be set both for clusters and hosts in OpenNebula with hosts'
|
|
|
127
128
|
attributes taking precedence. If attributes are set only for cluster, all hosts
|
|
128
129
|
within the cluster will be assigned these values.
|
|
129
130
|
|
|
130
|
-
###Set Rails environment variable according to your environment
|
|
131
|
+
### Set Rails environment variable according to your environment
|
|
131
132
|
You have to set system environment variable `RAILS_ENV` to one of the
|
|
132
133
|
values production, development or test. OneacctExport is not a Rails
|
|
133
134
|
application but we chose the Rails variable for easier possible integration in
|
|
134
135
|
the future.
|
|
135
136
|
|
|
136
|
-
##Usage
|
|
137
|
+
## Usage
|
|
137
138
|
|
|
138
139
|
**Both OpenNebula and Redis server must be running prior the next steps.**
|
|
139
140
|
|
|
140
|
-
###Start sidekiq
|
|
141
|
+
### Start sidekiq
|
|
141
142
|
First you have to start Sidekiq so it can run the jobs from the queue. Since
|
|
142
143
|
OneacctExport is not a Rails application Sidekiq has to be started with
|
|
143
144
|
OneacctExport's worker class as an argument. For example:
|
|
@@ -146,7 +147,7 @@ OneacctExport's worker class as an argument. For example:
|
|
|
146
147
|
sidekiq -r $PATH_TO_GEM_DIR/lib/one_worker.rb -C $PATH_TO_GEM_DIR/config/sidekiq.yml
|
|
147
148
|
```
|
|
148
149
|
|
|
149
|
-
###Start OneacctExport
|
|
150
|
+
### Start OneacctExport
|
|
150
151
|
|
|
151
152
|
OneacctExport is run with executable `oneacct-export`. For a list of all
|
|
152
153
|
available options run `oneacct-export -h`:
|
|
@@ -171,8 +172,8 @@ Usage oneacct-export [options]
|
|
|
171
172
|
-v, --version Shows version
|
|
172
173
|
```
|
|
173
174
|
|
|
174
|
-
###Package specific scripts
|
|
175
|
-
When installed from packages build via [omnibus packaging for OneacctExport](https://github.com/
|
|
175
|
+
### Package specific scripts
|
|
176
|
+
When installed from packages build via [omnibus packaging for OneacctExport](https://github.com/the-oneacct-export-project/omnibus-oneacct-export),
|
|
176
177
|
both Sidekiq and OneacctExport are automatically registered as cron jobs to run
|
|
177
178
|
periodically. Cron job managing OneacctExport uses a bash script which is
|
|
178
179
|
simplifying OneacctExport interface for most common use cases. After the installation,
|
|
@@ -184,21 +185,21 @@ which when present in `/opt/oneacct-export/` directory serves as a configuration
|
|
|
184
185
|
* `groups.include` - contains list of groups to include (same as combination of OneacctExport options `--include-groups` and `--group-file`)
|
|
185
186
|
* `groups.exclude` - contains list of groups to exclude (same as combination of OneacctExport options `--exclude-groups` and `--group-file`)
|
|
186
187
|
|
|
187
|
-
##Code Documentation
|
|
188
|
-
[Code Documentation for OneacctExport by YARD](http://rubydoc.info/github/
|
|
188
|
+
## Code Documentation
|
|
189
|
+
[Code Documentation for OneacctExport by YARD](http://rubydoc.info/github/the-oneacct-export-project/oneacct-export/)
|
|
189
190
|
|
|
190
|
-
##Continuous integration
|
|
191
|
-
[Continuous integration for OneacctExport by Travis-CI](http://travis-ci.org/
|
|
191
|
+
## Continuous integration
|
|
192
|
+
[Continuous integration for OneacctExport by Travis-CI](http://travis-ci.org/the-oneacct-export-project/oneacct-export/)
|
|
192
193
|
|
|
193
|
-
##Development
|
|
194
|
-
###Contributing
|
|
195
|
-
1. Fork it ( https://github.com/
|
|
194
|
+
## Development
|
|
195
|
+
### Contributing
|
|
196
|
+
1. Fork it ( https://github.com/the-oneacct-export-project/oneacct-export/fork )
|
|
196
197
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
197
198
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
198
199
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
199
200
|
5. Create a new Pull Request
|
|
200
201
|
|
|
201
|
-
###Debugging
|
|
202
|
+
### Debugging
|
|
202
203
|
To change the log level of `oneacct-export` and `sidekiq` you have to set the environment variable **ONEACCT_EXPORT_LOG_LEVEL** to log level you need. Supported log levels are `DEBUG`, `INFO`, `WARN` and `ERROR`.
|
|
203
204
|
```bash
|
|
204
205
|
export ONEACCT_EXPORT_LOG_LEVEL=DEBUG
|
data/Rakefile
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
|
+
require 'rspec/core/rake_task'
|
|
1
2
|
require 'bundler/gem_tasks'
|
|
2
|
-
require 'rubygems/tasks'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
task :test => 'rcov:rspec'
|
|
8
|
-
|
|
9
|
-
desc "Run all tests; includes rspec and coverage reports"
|
|
10
|
-
task :spec => 'test'
|
|
11
|
-
|
|
12
|
-
Gem::Tasks.new(:build => {:tar => true, :zip => true}, :sign => {:checksum => true, :pgp => false})
|
|
13
|
-
|
|
14
|
-
namespace :rcov do
|
|
15
|
-
require 'rspec/core/rake_task'
|
|
16
|
-
|
|
17
|
-
RSpec::Core::RakeTask.new(:rspec)
|
|
18
|
-
end
|
|
6
|
+
task default: :spec
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
FROM ruby:2.2-jessie
|
|
2
|
+
|
|
3
|
+
ARG branch=master
|
|
4
|
+
ARG version
|
|
5
|
+
|
|
6
|
+
ENV name="oneacct-export" \
|
|
7
|
+
user="apel"
|
|
8
|
+
ENV runDir="/var/run/${name}" \
|
|
9
|
+
logDir="/var/log/${name}" \
|
|
10
|
+
homeDir="/var/lib/${user}" \
|
|
11
|
+
spoolDir="/var/spool/${user}/outgoing/00000000"
|
|
12
|
+
ENV confDir="${homeDir}/.${name}"
|
|
13
|
+
|
|
14
|
+
LABEL application=${name} \
|
|
15
|
+
description="Exporting OpenNebula accounting data" \
|
|
16
|
+
maintainer="kimle@cesnet.cz" \
|
|
17
|
+
version=${version} \
|
|
18
|
+
branch=${branch}
|
|
19
|
+
|
|
20
|
+
SHELL ["/bin/bash", "-c"]
|
|
21
|
+
|
|
22
|
+
# oneacct-export
|
|
23
|
+
RUN gem install ${name} -v "${version}" --no-document
|
|
24
|
+
|
|
25
|
+
# EGI trust anchors
|
|
26
|
+
RUN set -o pipefail && \
|
|
27
|
+
apt-get update && \
|
|
28
|
+
apt-get --assume-yes install curl && \
|
|
29
|
+
curl -s https://dist.eugridpma.info/distribution/igtf/current/GPG-KEY-EUGridPMA-RPM-3 | apt-key add - && \
|
|
30
|
+
echo $'#### EGI Trust Anchor Distribution ####\n\
|
|
31
|
+
deb http://repository.egi.eu/sw/production/cas/1/current egi-igtf core' > /etc/apt/sources.list.d/egi.list && \
|
|
32
|
+
apt-get update && \
|
|
33
|
+
apt-get --assume-yes install ca-policy-egi-core gettext-base
|
|
34
|
+
|
|
35
|
+
# env
|
|
36
|
+
RUN useradd --system --shell /bin/false --home ${homeDir} --create-home --uid 1000 ${user} && \
|
|
37
|
+
usermod -L ${user} && \
|
|
38
|
+
mkdir -p ${runDir} ${logDir} ${spoolDir} ${confDir} && \
|
|
39
|
+
chown -R ${user}:${user} ${runDir} ${logDir} ${spoolDir} ${confDir}
|
|
40
|
+
|
|
41
|
+
COPY config/* /oneacct-export/config/
|
|
42
|
+
COPY bin/* /oneacct-export/bin/
|
|
43
|
+
|
|
44
|
+
VOLUME ${logDir}
|
|
45
|
+
VOLUME ${spoolDir}
|
|
46
|
+
|
|
47
|
+
USER ${user}
|
|
48
|
+
|
|
49
|
+
ENTRYPOINT ["/oneacct-export/bin/oneacct-wrapper.sh"]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
ARG branch=master
|
|
2
|
+
ARG version
|
|
3
|
+
|
|
4
|
+
FROM misenko/oneacct-export:${version}
|
|
5
|
+
|
|
6
|
+
ENV name="sidekiq"
|
|
7
|
+
|
|
8
|
+
LABEL application=${name} \
|
|
9
|
+
description="Sidekiq" \
|
|
10
|
+
maintainer="kimle@cesnet.cz" \
|
|
11
|
+
version=${version} \
|
|
12
|
+
branch=${branch}
|
|
13
|
+
|
|
14
|
+
ENTRYPOINT ["/oneacct-export/bin/sidekiq-wrapper.sh"]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function configure_oneacct-export {
|
|
2
|
+
export ONEACCT_NUM_OF_VMS_PER_FILE="${ONEACCT_NUM_OF_VMS_PER_FILE:-500}"
|
|
3
|
+
export ONEACCT_SITE_NAME="${ONEACCT_SITE_NAME:-Undefined}"
|
|
4
|
+
export ONEACCT_CLOUD_TYPE="${ONEACCT_CLOUD_TYPE:-OpenNebula}"
|
|
5
|
+
export ONEACCT_ENDPOINT="${ONEACCT_ENDPOINT:-https://occi.localhost.com:11443/}"
|
|
6
|
+
export ONEACCT_REDIS_NAMESPACE="${ONEACCT_REDIS_NAMESPACE:-oneacct_export}"
|
|
7
|
+
export ONEACCT_REDIS_URL="${ONEACCT_REDIS_URL:-redis://localhost:6379}"
|
|
8
|
+
export ONEACCT_SIDEKIQ_QUEUE="${ONEACCT_SIDEKIQ_QUEUE:-oneacct_export}"
|
|
9
|
+
|
|
10
|
+
envsubst < /oneacct-export/config/conf.yml > /var/lib/apel/.oneacct-export/conf.yml
|
|
11
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
defaults: &defaults
|
|
3
|
+
output:
|
|
4
|
+
output_dir: /var/spool/apel/outgoing/00000000 # Directory for outgoing messages
|
|
5
|
+
output_type: apel-0.4 # Format of outgoing messages. Choices are: apel-0.2, apel-0.4, pbs-0.1, logstash-0.1
|
|
6
|
+
num_of_vms_per_file: ${ONEACCT_NUM_OF_VMS_PER_FILE} # Maximum number of virtual machine records per one output file
|
|
7
|
+
apel: # Options for apel output format
|
|
8
|
+
site_name: ${ONEACCT_SITE_NAME} # Usually a short provider name, e.g. CESNET
|
|
9
|
+
cloud_type: ${ONEACCT_CLOUD_TYPE} # CMF type, only OpenNebula is supported
|
|
10
|
+
endpoint: ${ONEACCT_ENDPOINT} # URL of your OCCI endpoint, e.g. https://fqdn.example.com:11443/
|
|
11
|
+
# cloud_compute_service: # Name identifying cloud resource within the site. Allows multiple cloud resources within a site. i.e. a level of granularity.
|
|
12
|
+
pbs: # Options for pbs output format
|
|
13
|
+
realm: REALM # Owner's realm, e.g. META
|
|
14
|
+
queue: cloud # Queue name
|
|
15
|
+
scratch_type: local # Data store type
|
|
16
|
+
host_identifier: on_localhost # Identifier for host OpenNebula is running on
|
|
17
|
+
logstash: # Options for logstash output format
|
|
18
|
+
host: localhost # Host OpenNebula is running on
|
|
19
|
+
port: 11443 # Port OpenNebula's RPC is listening on
|
|
20
|
+
logging:
|
|
21
|
+
log_type: file # Two options: file, syslog. Defaults to stdout
|
|
22
|
+
log_file: /var/log/oneacct-export/oneacct-export.log # Used when type file selected
|
|
23
|
+
xml_rpc:
|
|
24
|
+
secret: ${ONEACCT_XML_RPC_SECRET} # If not specified looking for secret in ONE_AUTH and ~/.one/one_auth
|
|
25
|
+
endpoint: ${ONEACCT_XML_RPC_ENDPOINT} # Defaults to content of ONE_XMLRPC or content of ~/.one/one_endpoint or http://localhost:2633/RPC2
|
|
26
|
+
redis:
|
|
27
|
+
namespace: ${ONEACCT_REDIS_NAMESPACE} # Namespace used by redis for sidekiq jobs
|
|
28
|
+
url: ${ONEACCT_REDIS_URL} # URL of redis server, defaults to redis://localhost:6379
|
|
29
|
+
password: ${ONEACCT_REDIS_PASSWORD} # Password to access redis server if needed
|
|
30
|
+
sidekiq:
|
|
31
|
+
queue: ${ONEACCT_SIDEKIQ_QUEUE} # Name of the redis queue used by sidekiq, must match sidekiq.yml configuration
|
|
32
|
+
|
|
33
|
+
###############################################
|
|
34
|
+
####### DO NOT EDIT AFTER THIS POINT ########
|
|
35
|
+
###############################################
|
|
36
|
+
|
|
37
|
+
production:
|
|
38
|
+
<<: *defaults
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
development:
|
|
42
|
+
<<: *defaults
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
test:
|
|
46
|
+
output:
|
|
47
|
+
output_dir: <placeholder>
|
|
48
|
+
output_type: <placeholder>
|
|
49
|
+
num_of_vms_per_file: <placeholder>
|
|
50
|
+
apel:
|
|
51
|
+
site_name: <placeholder>
|
|
52
|
+
cloud_type: <placeholder>
|
|
53
|
+
endpoint: <placeholder>
|
|
54
|
+
pbs:
|
|
55
|
+
realm: <placeholder>
|
|
56
|
+
queue: <placeholder>
|
|
57
|
+
scratch_type: <placeholder>
|
|
58
|
+
host_identifier: <placeholder>
|
|
59
|
+
logstash:
|
|
60
|
+
host: <placeholder>
|
|
61
|
+
port: <placeholder>
|
|
62
|
+
logging:
|
|
63
|
+
log_type: <placeholder>
|
|
64
|
+
log_file: <placeholder>
|
|
65
|
+
xml_rpc:
|
|
66
|
+
secret: <placeholder>
|
|
67
|
+
endpoint: <placeholder>
|
|
68
|
+
redis:
|
|
69
|
+
namespace: <placeholder>
|
|
70
|
+
url: http://some.random.url.com
|
|
71
|
+
password: password
|
|
72
|
+
sidekiq:
|
|
73
|
+
queue: oneacct_export
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: oneacct-export
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michal Kimle
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-10-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -172,6 +172,7 @@ executables:
|
|
|
172
172
|
extensions: []
|
|
173
173
|
extra_rdoc_files: []
|
|
174
174
|
files:
|
|
175
|
+
- ".circleci/config.yml"
|
|
175
176
|
- ".gitignore"
|
|
176
177
|
- ".rspec"
|
|
177
178
|
- ".travis.yml"
|
|
@@ -183,6 +184,12 @@ files:
|
|
|
183
184
|
- bin/oneacct-export
|
|
184
185
|
- config/conf.yml
|
|
185
186
|
- config/sidekiq.yml
|
|
187
|
+
- docker/Dockerfile_oneacct-export
|
|
188
|
+
- docker/Dockerfile_sidekiq
|
|
189
|
+
- docker/bin/configuration.sh
|
|
190
|
+
- docker/bin/oneacct-wrapper.sh
|
|
191
|
+
- docker/bin/sidekiq-wrapper.sh
|
|
192
|
+
- docker/config/conf.yml
|
|
186
193
|
- examples/etc/cron.d/oneacct-export
|
|
187
194
|
- examples/etc/init.d/oneacct-export-cron
|
|
188
195
|
- examples/etc/init.d/oneacct-export-sidekiq
|
|
@@ -273,7 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
273
280
|
version: '0'
|
|
274
281
|
requirements: []
|
|
275
282
|
rubyforge_project:
|
|
276
|
-
rubygems_version: 2.6.
|
|
283
|
+
rubygems_version: 2.6.13
|
|
277
284
|
signing_key:
|
|
278
285
|
specification_version: 4
|
|
279
286
|
summary: Exporting OpenNebula accounting data.
|