Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 1 | ===== |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 2 | Usage |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 3 | ===== |
| 4 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 5 | The Aptly formula configures and installs the Aptly server and client. |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 6 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 7 | The available states include: |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 8 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 9 | * ``aptly.server`` |
| 10 | * ``aptly.publisher`` |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 11 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 12 | The available metadata include: |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 13 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 14 | * ``metadata.aptly.server.single`` |
| 15 | * ``metadata.aptly.client.publisher`` |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 16 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 17 | This file provides the sample configurations for different use cases. |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 18 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 19 | * Reclass examples: |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 20 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 21 | * The basic Aptly server configuration without repositories or mirrors: |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 22 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 23 | .. code-block:: yaml |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 24 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 25 | classes: |
| 26 | - service.aptly.server.single |
| 27 | parameters: |
| 28 | aptly: |
| 29 | server: |
| 30 | enabled: true |
| 31 | secure: true |
| 32 | gpg_keypair_id: A76882D3 |
| 33 | gpg_passphrase: |
| 34 | gpg_public_key: | |
| 35 | -----BEGIN PGP PUBLIC KEY BLOCK----- |
| 36 | Version: GnuPG v1 |
| 37 | ... |
| 38 | gpg_private_key: | |
| 39 | -----BEGIN PGP PRIVATE KEY BLOCK----- |
| 40 | Version: GnuPG v1 |
| 41 | ... |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 42 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 43 | * The definition of an s3 endpoint: |
| 44 | |
| 45 | .. code-block:: yaml |
| 46 | |
| 47 | parameters: |
| 48 | aptly: |
| 49 | server: |
| 50 | endpoint: |
| 51 | mys3endpoint: |
| 52 | engine: s3 |
| 53 | awsAccessKeyID: xxxx |
| 54 | awsSecretAccessKey: xxxx |
| 55 | bucket: test |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 56 | |
| 57 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 58 | * Pillar examples: |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 59 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 60 | * The Aptly server basic configuration: |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 61 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 62 | .. code-block:: yaml |
| 63 | |
| 64 | aptly: |
| 65 | server: |
| 66 | enabled: true |
| 67 | repo: |
| 68 | myrepo: |
| 69 | distribution: trusty |
| 70 | component: main |
| 71 | architectures: amd64 |
| 72 | comment: "Custom components" |
| 73 | sources: false |
| 74 | publisher: |
| 75 | component: mycomponent |
| 76 | distributions: |
| 77 | - nightly/trusty |
| 78 | |
| 79 | * The Aptly server mirrors configuration: |
| 80 | |
| 81 | .. code-block:: yaml |
| 82 | |
| 83 | aptly: |
| 84 | server: |
| 85 | mirror: |
| 86 | mirror_name: |
| 87 | source: http://example.com/debian |
| 88 | distribution: xenial |
| 89 | components: main |
| 90 | architectures: amd64 |
| 91 | gpgkeys: 460F3999 |
| 92 | filter: "!(Name (% *-dbg))" |
| 93 | filter_with_deps: true |
| 94 | publisher: |
| 95 | component: example |
| 96 | distributions: |
| 97 | - xenial/repo/nightly |
| 98 | - "s3:aptcdn:xenial/repo/nightly" |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 99 | |
| 100 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 101 | * The definition of the proxy environment variables in cron job for |
| 102 | mirroring script: |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 103 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 104 | .. code-block:: yaml |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 105 | |
Filip Pytloun | 611af94 | 2017-11-21 15:36:45 +0100 | [diff] [blame] | 106 | aptly: |
| 107 | server: |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 108 | enabled: true |
| 109 | ... |
| 110 | mirror_update: |
| 111 | enabled: true |
| 112 | http_proxy: "http://1.2.3.4:8000" |
| 113 | https_proxy: "http://1.2.3.4:8000" |
| 114 | ... |
Filip Pytloun | 611af94 | 2017-11-21 15:36:45 +0100 | [diff] [blame] | 115 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 116 | **Read more** |
Filip Pytloun | 9534729 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 117 | |
| 118 | * http://www.aptly.info/doc/configuration/ |
Filip Pytloun | c33d90f | 2017-02-02 12:52:25 +0100 | [diff] [blame] | 119 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 120 | **Documentation and bugs** |
Filip Pytloun | c33d90f | 2017-02-02 12:52:25 +0100 | [diff] [blame] | 121 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 122 | * http://salt-formulas.readthedocs.io/ |
| 123 | Learn how to install and update salt-formulas |
Filip Pytloun | c33d90f | 2017-02-02 12:52:25 +0100 | [diff] [blame] | 124 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 125 | * https://github.com/salt-formulas/salt-formula-ntp/issues |
| 126 | In the unfortunate event that bugs are discovered, report the issue to the |
| 127 | appropriate issue tracker. Use the Github issue tracker for a specific salt |
| 128 | formula |
Filip Pytloun | c33d90f | 2017-02-02 12:52:25 +0100 | [diff] [blame] | 129 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 130 | * https://launchpad.net/salt-formulas |
| 131 | For feature requests, bug reports, or blueprints affecting the entire |
| 132 | ecosystem, use the Launchpad salt-formulas project |
Filip Pytloun | c33d90f | 2017-02-02 12:52:25 +0100 | [diff] [blame] | 133 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 134 | * https://launchpad.net/~salt-formulas-users |
| 135 | Join the salt-formulas-users team and subscribe to mailing list if required |
Filip Pytloun | c33d90f | 2017-02-02 12:52:25 +0100 | [diff] [blame] | 136 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 137 | * https://github.com/salt-formulas/salt-formula-aptly |
| 138 | Develop the salt-formulas projects in the master branch and then submit pull |
| 139 | requests against a specific formula |
Filip Pytloun | c33d90f | 2017-02-02 12:52:25 +0100 | [diff] [blame] | 140 | |
OlgaGusarenko | 7eef785 | 2018-06-28 13:58:18 +0300 | [diff] [blame] | 141 | * #salt-formulas @ irc.freenode.net |
| 142 | Use this IRC channel in case of any questions or feedback which is always |
| 143 | welcome |