blob: 0223a146cf2905f8a69a047bce566e4f9203fb4e [file] [log] [blame]
Filip Pytloun95347292015-10-06 16:28:31 +02001=====
2Aptly
3=====
4
5Install and configure Aptly server and client.
6
7Available states
8================
9
10.. contents::
11 :local:
12
13``aptly.server``
14----------------
15
16Setup aptly server
17
18``aptly.publisher``
19-------------------
20
21Setup aptly publisher
22
23Available metadata
24==================
25
26.. contents::
27 :local:
28
29``metadata.aptly.server.single``
30--------------------------------
31
32Setup basic server
33
34
35``metadata.aptly.client.publisher``
36-----------------------------------
37
38Setup aptly publisher client
39
40Configuration parameters
41========================
42
43
44Example reclass
45===============
46
47Basic Aptly server with no repos or mirrors.
48
49.. code-block:: yaml
50
51 classes:
52 - service.aptly.server.single
53 parameters:
54 aptly:
55 server:
56 enabled: true
57 secure: true
58 gpg_keypair_id: A76882D3
59 gpg_passphrase:
60 gpg_public_key: |
61 -----BEGIN PGP PUBLIC KEY BLOCK-----
62 Version: GnuPG v1
63 ...
64 gpg_private_key: |
65 -----BEGIN PGP PRIVATE KEY BLOCK-----
66 Version: GnuPG v1
67 ...
68
Filip Pytloun611af942017-11-21 15:36:45 +010069Define s3 endpoint:
70
71.. code-block:: yaml
72
73 parameters:
74 aptly:
75 server:
76 endpoint:
77 mys3endpoint:
78 engine: s3
79 awsAccessKeyID: xxxx
80 awsSecretAccessKey: xxxx
81 bucket: test
82
Jiri Broulik5496f6a2018-02-01 17:16:15 +010083
Filip Pytloun95347292015-10-06 16:28:31 +020084Example pillar
85==============
86
87.. code-block:: yaml
88
89 aptly:
90 server:
91 enabled: true
92 repo:
93 myrepo:
94 distribution: trusty
95 component: main
96 architectures: amd64
97 comment: "Custom components"
Petr Michalecd78b4812016-12-27 16:11:06 +010098 sources: false
Filip Pytloun95347292015-10-06 16:28:31 +020099 publisher:
100 component: mycomponent
101 distributions:
102 - nightly/trusty
103
Jiri Broulik5496f6a2018-02-01 17:16:15 +0100104Basic Aptly server mirrors
105
106.. code-block:: yaml
107
108 aptly:
109 server:
110 mirror:
111 mirror_name:
112 source: http://example.com/debian
113 distribution: xenial
114 components: main
115 architectures: amd64
116 gpgkeys: 460F3999
117 filter: "!(Name (% *-dbg))"
118 publisher:
119 component: example
120 distributions:
121 - xenial/repo/nightly
122 - "s3:aptcdn:xenial/repo/nightly"
123
124
Stehlik Lukas48e868a2018-01-11 14:33:16 +0100125Proxy environment variables (optional) in cron job for mirroring script
126
127.. code-block:: yaml
128
129 aptly:
130 server:
131 enabled: true
132 ...
133 mirror_update:
134 enabled: true
135 http_proxy: "http://1.2.3.4:8000"
136 https_proxy: "http://1.2.3.4:8000"
137 ...
138
Filip Pytloun95347292015-10-06 16:28:31 +0200139Read more
140=========
141
142* http://www.aptly.info/doc/configuration/
Filip Pytlounc33d90f2017-02-02 12:52:25 +0100143
144Documentation and Bugs
145======================
146
147To learn how to install and update salt-formulas, consult the documentation
148available online at:
149
150 http://salt-formulas.readthedocs.io/
151
152In the unfortunate event that bugs are discovered, they should be reported to
153the appropriate issue tracker. Use Github issue tracker for specific salt
154formula:
155
156 https://github.com/salt-formulas/salt-formula-aptly/issues
157
158For feature requests, bug reports or blueprints affecting entire ecosystem,
159use Launchpad salt-formulas project:
160
161 https://launchpad.net/salt-formulas
162
163You can also join salt-formulas-users team and subscribe to mailing list:
164
165 https://launchpad.net/~salt-formulas-users
166
167Developers wishing to work on the salt-formulas projects should always base
168their work on master branch and submit pull request against specific formula.
169
170 https://github.com/salt-formulas/salt-formula-aptly
171
172Any questions or feedback is always welcome so feel free to join our IRC
173channel:
174
175 #salt-formulas @ irc.freenode.net