snap store proxy #0

Supports: bionic

Description

Charm for testing snap-store-proxy


Snap Store Proxy charm

(Built from Github sources: https://github.com/johnsca/charm-snap-store-proxy, revision 7ba90d4)

This charm is for basic testing with the snap-store-proxy.

It requires postgresql and can be deployed with the bundle.yaml included in this repository:

series: bionic
applications:
  postgresql:
    charm: cs:postgresql
    num_units: 1
    constraints: mem=3G
  snap-store-proxy:
    charm: /path/to/built/snap-store-proxy
    num_units: 1
    constraints: mem=3G
    expose: true
relations:
  - [snap-store-proxy, postgresql:db-admin]

Once deployed, the charm will prompt via status to perform the manual registration step using:

juju ssh {unit} "sudo snap-proxy register"

After registering, you may have to wait up to 5 minutes for the charm to acknowledge the registration. Once ready, the status output will give you the commands to activate the snap store proxy on your machine, which are:

curl -s http://{domain}/v2/auth/store/assertions | sudo snap ack /dev/stdin
sudo snap set core proxy.store={store_id}

The {domain} is the public address of this charm, and the {store_id} will be included in the status, or can be retrieved using:

juju ssh {unit} "snap-proxy status"

You can then create or delete overrides using the actions:

juju run-action --wait {unit} create-override snap=kubectl channel=1.16/stable rev=1202
juju run-action --wait {unit} delete-override snap=kubectl channel=1.16/stable

Configuration

snapd_refresh
(string) How often snapd handles updates for installed snaps. The default (an empty string) is 4x per day. Set to "max" to check once per month based on the charm deployment date. You may also set a custom string as described in the 'refresh.timer' section here: https://forum.snapcraft.io/t/system-options/87