forked from juju-solutions/layer-apache-bigtop-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
layer.yaml
89 lines (86 loc) · 2.74 KB
/
layer.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
includes:
- 'layer:basic'
- 'layer:metrics'
- 'layer:nvidia-cuda'
- 'interface:java'
ignore:
- 'tests/unit'
- 'tox_unit.ini'
- 'unit_test_requirements.txt'
options:
basic:
packages:
- build-essential # required to build netifaces during pip install
- git
- puppet-common
- unzip
defines:
install_java:
type: string
default: 'openjdk-8-jdk-headless'
description: |
Tell this charm to install java, instead of relying on the openjdk charm.
This string should match the name of the java package to be installed.
bigtop_component_list:
# XXX this should be a proper array of strings
type: string
default: 'hadoop'
description: 'Space seperated list of bigtop component to be installed'
bigtop_smoketest_components:
type: array
items: {type: string}
description: |
A list of Bigtop components to exercise during the
smoke-test action. Available components can be found at:
https://github.com/apache/bigtop/tree/master/bigtop-tests/smoke-tests
groups:
description: |
A list of system groups to be created during setup.
type: array
items: {type: string}
users:
description: |
This option defines system users to be created during setup. The value
for this option should be a mapping of usernames to information about
the user. Currently, this only supports a 'groups' item that should be
a list of groups to add the user to, with the first being the user's
primary group.
type: object
patternProperties:
'^[a-z_][a-z0-9_-]*[$]?$':
type: object
additionalProperties: false
properties:
groups:
type: array
items: {type: string}
dirs:
description: |
This option defines directories to be created during setup. The value
for this option should be a mapping of symbolic identifiers (i.e., not
the dir path) to a mapping containing information about the directory,
such as the path, permissions bits, owner, and group. The path can
contain references to other defined directories in the form
'{dirs[<dir-id>]}', or to config option values in the form
'{config[<opt-name>]}'.
type: object
patternProperties:
'.*':
type: object
additionalProperties: false
properties:
path: {type: string}
perms: {type: integer}
owner: {type: string}
group: {type: string}
ports:
description: |
This option defines controlled by the service.
type: object
patternProperties:
'.*':
type: object
additionalProperties: false
properties:
port: {type: integer}
exposed_on: {type: string}