~hloeung/ubuntu-repository-cache/logging-ubuntu_active-plus-keeps

1 by Robert Jennings
First post: just a charm skeleton
1
options:
3 by Robert Jennings
Partial port of squid-rp-mirror to python
2
  sync-host:
3
    default: archive.ubuntu.com
1 by Robert Jennings
First post: just a charm skeleton
4
    type: string
3 by Robert Jennings
Partial port of squid-rp-mirror to python
5
    description: |
6
      The DNS or IP of the site you want to mirror.
5 by Robert Jennings
Add additional logging and push the squid allowed networks template
7
      Default is archive.ubuntu.com.
228.3.1 by Francis Ginther
Add 'mirror-series' option to allow limiting of the archive metadata.
8
  mirror-series:
9
    default: ""
10
    type: string
11
    description: |
243.1.1 by Paul Gear
Correct grammar/spelling
12
      A space-separated list of ubuntu series metadata to mirror. An empty
228.3.1 by Francis Ginther
Add 'mirror-series' option to allow limiting of the archive metadata.
13
      or blank string will mirror everything.
249 by Ryan Finnie
[r=rcj] Add expanded configuration options for archive types
14
  path-base:
15
    default: ubuntu
16
    type: string
17
    description: |
18
      The base URI path of the site you want to mirror. At the moment, this
19
      may only be a single-level base (no directory slashes).
20
      Default is ubuntu.
21
  rsync-module:
22
    default: ubuntu
23
    type: string
24
    description: |
25
      The rsync module to sync from on sync-host, normally the same as
26
      path-base. Default is ubuntu.
27
  display-host:
28
    default: archive.ubuntu.com
29
    type: string
30
    description: |
31
      The hostname displayed in certain contexts, for example Apache
32
      directory listings. This is not required to be exactly the same as
33
      the logical hostname of the deployment (for example,
34
      region.cloud.archive.ubuntu.com can use the default
35
      archive.ubuntu.com), but should be changed if the archive type is
36
      non-default (e.g. ports.ubuntu.com).
37
  update-unit-apt-sources:
269.2.4 by Haw Loeung
Revert and make update-unit-apt-sources default to true, revisit later
38
    default: true
249 by Ryan Finnie
[r=rcj] Add expanded configuration options for archive types
39
    type: boolean
40
    description: |
41
      Whether to configure the units' sources.list to point to upstream
42
      sync-host directly, to avoid chicken/egg problems when bootstrapping
269.2.4 by Haw Loeung
Revert and make update-unit-apt-sources default to true, revisit later
43
      a cloud. Default is true; disable if mirrored distro or archive type
249 by Ryan Finnie
[r=rcj] Add expanded configuration options for archive types
44
      does not match the unit host.
120 by Robert Jennings
Add option to skip sync during startup for scaleout deployments
45
  sync-on-start:
46
    default: true
47
    type: boolean
48
    description: |
49
      Pull data from the sync-host during inital charm deployment.  This
50
      should be true if deploying a single unit and false if deploying
51
      multiple units to reduce initial startup time.
214.3.2 by Paul Gear
Add configurable cache age RT#94231; flake8 fixes
52
  sync-age-crit:
53
    default: 21600
54
    type: int
55
    description: |
56
      Age (in seconds) of CRITICAL level in Nagios check for cache sync.
57
  sync-age-warn:
58
    default: 10800
59
    type: int
60
    description: |
61
      Age (in seconds) of WARNING level in Nagios check for cache sync.
136 by Robert Jennings
Size cache memory/disk dynamically
62
  ephemeral-devices:
63
    default: ''
29 by Robert Jennings
Fix emphemeral mount logic and add clean up of old mirror data
64
    type: string
65
    description: |
136 by Robert Jennings
Size cache memory/disk dynamically
66
      Provide a comma-separated list of storages devices to use for
67
      metadata and squid cache storage.  Leave this empty if only
68
      the root disk will be used.  the device(s) will be formatted
69
      and mounted during charm installation.  This option must be set
70
      at in itial charm deployment.  Changes after deployment will not
71
      effect running units, only newly added units.  An example would be
72
      '/dev/xvdb,/dev/xvdc' to specify two ephemeral disks for cache
73
      storage.
289.2.1 by Haw Loeung
Allow runtime tuning of memory used by squid
74
  cache-memory-size:
75
    default: 0
76
    type: int
77
    description: |
78
      Configurable option (in MBytes) to tune/override memory used by
79
      squid cache. If 0 or unset, then auto-calculate.
255.1.3 by Haw Loeung
Allow overriding storage space used by squid cache
80
  cache-storage-size:
81
    default: 0
82
    type: int
83
    description: |
84
      Configurable option (in MBytes) to tune/override storage used by
85
      squid cache. If 0 or unset, then auto-calculate.
166 by Robert Jennings
Add nrpe support
86
  nagios_context:
87
    default: 'juju'
88
    type: string
89
    description: |
204.1.1 by Daniel Watkins
Fix nagios_context whitespace.
90
      A string that will be prepended to instance name to set the host name
91
      in nagios. So for instance the hostname would be something like:
92
          juju-myservice-0
93
      If you're running multiple environments with the same services in them
94
      this allows you to differentiate between them.
204.1.2 by Daniel Watkins
Enable Nagios servicegroups.
95
  nagios_servicegroups:
96
    default: ""
97
    type: string
98
    description: |
99
      A comma-separated list of nagios servicegroups.
100
      If left empty, the nagios_context will be used as the servicegroup
156 by Robert Jennings
Add tunables for Apache2 MPM and security configuration
101
  apache2_server_tokens:
102
    type: string
103
    description: |
104
       Security setting. Set to one of  Full  OS  Minimal  Minor  Major  Prod
105
    default: 'OS'
106
  apache2_server_signature:
107
    type: string
108
    description: Security setting. Set to one of  On  Off  EMail
109
    default: 'On'
110
  apache2_trace_enabled:
111
    type: string
112
    description: Security setting. Set to one of  On  Off  extended
113
    default: 'Off'
114
  apache2_mpm_type:
115
    type: string
116
    default: 'worker'
117
    description: Select the worker or prefork multi-processing module
118
  apache2_mpm_startservers:
119
    type: int
288.1.1 by Haw Loeung
Automatically calculate MPM worker tuning configs
120
    default: 0
121
    description: Initial number of server processes to start (0 means auto calculate)
156 by Robert Jennings
Add tunables for Apache2 MPM and security configuration
122
  apache2_mpm_minsparethreads:
123
    type: int
288.1.1 by Haw Loeung
Automatically calculate MPM worker tuning configs
124
    default: 0
125
    description: Minimum number of worker threads which are kept spare (0 means auto calculate)
156 by Robert Jennings
Add tunables for Apache2 MPM and security configuration
126
  apache2_mpm_maxsparethreads:
127
    type: int
288.1.1 by Haw Loeung
Automatically calculate MPM worker tuning configs
128
    default: 0
129
    description: Maximum number of worker threads which are kept spare (0 means auto calculate)
156 by Robert Jennings
Add tunables for Apache2 MPM and security configuration
130
  apache2_mpm_threadlimit:
131
    type: int
288.1.1 by Haw Loeung
Automatically calculate MPM worker tuning configs
132
    default: 0
156 by Robert Jennings
Add tunables for Apache2 MPM and security configuration
133
    description: |
134
       Sets the upper limit on the configurable number of threads per
288.1.1 by Haw Loeung
Automatically calculate MPM worker tuning configs
135
       child process (0 means autocalculate)
156 by Robert Jennings
Add tunables for Apache2 MPM and security configuration
136
  apache2_mpm_threadsperchild:
137
    type: int
288.1.1 by Haw Loeung
Automatically calculate MPM worker tuning configs
138
    default: 0
139
    description: Constant number of worker threads in each server process (0 means autocalculate)
156 by Robert Jennings
Add tunables for Apache2 MPM and security configuration
140
  apache2_mpm_serverlimit:
141
    type: int
288.1.1 by Haw Loeung
Automatically calculate MPM worker tuning configs
142
    default: 0
143
    description: Upper limit on configurable number of processes (0 means autocalculate)
158 by Robert Jennings
apache: Update tunable names
144
  apache2_mpm_maxrequestworkers:
156 by Robert Jennings
Add tunables for Apache2 MPM and security configuration
145
    type: int
288.1.1 by Haw Loeung
Automatically calculate MPM worker tuning configs
146
    default: 0
147
    description: Maximum number of simultaneous client connections (0 means autocalculate)
158 by Robert Jennings
apache: Update tunable names
148
  apache2_mpm_maxconnectionsperchild:
156 by Robert Jennings
Add tunables for Apache2 MPM and security configuration
149
    type: int
288.1.2 by Haw Loeung
Automatically cycle through apache2 child processes
150
    default: 10000
156 by Robert Jennings
Add tunables for Apache2 MPM and security configuration
151
    description: Maximum number of requests a server process serves
187 by Robert Jennings
Add logrotation for apache
152
  logrotate_rotate:
153
    type: string
154
    description: daily, weekly, monthly, or yearly?
155
    default: "daily"
156
  logrotate_count:
157
    type: int
158
    description: The number of days we want to retain logs for
280.1.4 by Haw Loeung
Keep logs around longer, useful for debugging (mainly repository-sync-cron.log)
159
    default: 21
187 by Robert Jennings
Add logrotation for apache
160
  logrotate_dateext:
161
    type: boolean
162
    description: >
163
      Use daily extension like YYYMMDD instead of simply adding a number
164
    default: True
214.4.1 by axino
[axino] add the squid_snmp config option, by which one can enable SNMP on squid
165
  squid_snmp:
166
    type: boolean
167
    description: >
168
      Enable SNMP for Squid (bound on localhost:3401, community "public")
169
    default: False
252.1.1 by Dave Lawson
Set up a config option to enable/disable remoteip logging for environments where haproxy is in front of u-r-c and is setting X-Forwarded-For headers from which we can extract real client IPs.
170
  remoteip_logging:
171
    type: boolean
172
    description: |
173
      Enables configuration that treats incoming connections to Apache from
174
      RFC1918 addresses as proxy connections and logs the contents of the
175
      X-Forwarded-For header (if any) to the Apache logs.
252.1.2 by Dave Lawson
Set remoteip_logging to default to False.
176
    default: False