/
main.yml
155 lines (132 loc) · 5.63 KB
/
main.yml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
---
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
# .. Copyright (C) 2015-2016 Maciej Delmanowski <drybjed@gmail.com>
# .. Copyright (C) 2015-2016 DebOps <https://debops.org/>
# .. SPDX-License-Identifier: GPL-3.0-only
# .. _ruby__ref_defaults:
# debops.ruby default variables [[[
# =================================
# .. contents:: Sections
# :local:
#
# .. include:: ../../../../includes/global.rst
# Ruby APT packages [[[
# ---------------------
# .. envvar:: ruby__base_packages [[[
#
# List of base APT packages to install.
ruby__base_packages: [ 'ruby', 'libruby', 'rubygems-integration',
'ruby-bundler' ]
# ]]]
# .. envvar:: ruby__dev_packages [[[
#
# List of development packages to install, which are required to compile native
# Ruby extensions. They will be installed if any Ruby gems are requested using
# the default lists.
ruby__dev_packages: '{{ ["ruby-dev", "build-essential"]
if (ruby__dev_support | bool or
ruby__gems or ruby__group_gems or
ruby__host_gems or ruby__dependent_gems or
ruby__user_gems or ruby__group_user_gems or
ruby__host_user_gems or ruby__dependent_user_gems)
else [] }}'
# ]]]
# .. envvar:: ruby__dev_support [[[
#
# By default ``debops.ruby`` installs only the base Ruby packages, unless any
# Ruby gems are requested. If this variable is set to ``True``, the role will
# install the build environment automatically without any gems set. This can be
# used by other roles to request the development packages ahead of time.
ruby__dev_support: False
# ]]]
# .. envvar:: ruby__packages [[[
#
# List of APT packages to install for all hosts in the Ansible inventory.
ruby__packages: []
# ]]]
# .. envvar:: ruby__group_packages [[[
#
# List of APT packages to install on a group of hosts in the Ansible inventory.
ruby__group_packages: []
# ]]]
# .. envvar:: ruby__host_packages [[[
#
# List of APT packages to install on specific hosts in the Ansible inventory.
ruby__host_packages: []
# ]]]
# .. envvar:: ruby__dependent_packages [[[
#
# List of APT packages to install specified by other roles via dependency
# variables.
ruby__dependent_packages: []
# ]]]
# ]]]
# Ruby gems [[[
# -------------
# You can specify a list of Ruby gems to install on a host. Each entry in the
# list is either a gem name, or a YAML dictionary with parameters known by the
# ``gem`` Ansible module. All specified gems will be installed system-wide.
#
# If any gems are specified, role will install additional APT packages required
# to build native extensions. List of these packages is specified in
# :envvar:`ruby__dev_packages` variable.
#
# See :ref:`ruby__ref_gems` for more details.
# .. envvar:: ruby__gems [[[
#
# List of gems that should be installed on all hosts in Ansible inventory.
ruby__gems: []
# ]]]
# .. envvar:: ruby__group_gems [[[
#
# List of gems that should be installed on a group of hosts in Ansible
# inventory.
ruby__group_gems: []
# ]]]
# .. envvar:: ruby__host_gems [[[
#
# List of gems that should be installed on a specific host in Ansible
# inventory.
ruby__host_gems: []
# ]]]
# .. envvar:: ruby__dependent_gems [[[
#
# List of gems configured by other Ansible role via role dependency variables.
ruby__dependent_gems: []
# ]]]
# ]]]
# Ruby user gems [[[
# ------------------
# You can specify a list of Ruby gems to install on a host on an user account.
# Each entry in the list a YAML dictionary with parameters known by the ``gem``
# Ansible module. All gems will be installed on a specified user account.
#
# If any gems are specified, role will install additional APT packages required
# to build native extensions. List of these packages is specified in
# :envvar:`ruby__dev_packages` variable.
#
# See :ref:`ruby__ref_user_gems` for more details.
# .. envvar:: ruby__user_gems [[[
#
# List of gems that should be installed on all hosts in Ansible inventory.
ruby__user_gems: []
# ]]]
# .. envvar:: ruby__group_user_gems [[[
#
# List of gems that should be installed on a group of hosts in Ansible
# inventory.
ruby__group_user_gems: []
# ]]]
# .. envvar:: ruby__host_user_gems [[[
#
# List of gems that should be installed on a specific host in Ansible
# inventory.
ruby__host_user_gems: []
# ]]]
# .. envvar:: ruby__dependent_user_gems [[[
#
# List of gems configured by other Ansible role via role dependency variables.
ruby__dependent_user_gems: []
# ]]]
# ]]]
# ]]]