Sync charmhelpers
Refresh charmhelpers with the latest Flamingo/Gazpacho version metadata.
Change-Id: I56204da6d831162e86d8e63a3cce0fbb828d27c1 Signed-off-by: Myles Penner myles.penner@canonical.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Overview
The glance-simplestreams-sync charm keeps OpenStack cloud images (in Glance) synchronised with the latest available images from a Simplestreams mirror(s). It uses Cron to do this.
The charm places simplestreams metadata in Object storage for future use by Juju. It then publishes the URL for that metadata as the endpoints of a new OpenStack service called ‘product-streams’.
The charm installs Simplestreams from a snap.
Usage
Configuration
This section covers common and/or important configuration options. See file
config.yamlfor the full list of options, along with their descriptions and default values. See the Juju documentation for details on configuring applications.runThe
runoption enables the synchronisation cron script. This option accepts Boolean values (‘true’ or ‘false’) with the default value being ‘false’. Changing the value from ‘false’ to ‘true’ will immediately schedule an image sync.frequencyThe
frequencyoption controls how often the sync cron job is run. It is used to link the cron script into/etc/cron.<frequency>. Valid string values are: ‘hourly’, ‘daily’, and ‘weekly’. The default is ‘daily’.regionThe
regionoption states the OpenStack region to operate in. The default value is ‘RegionOne’.mirror_listThe
mirror_listoption is a YAML-formatted list of Simplestreams mirrors and their configuration properties. The default behaviour is to download images from https://cloud-images.ubuntu.com.ssl_caThe
ssl_caoption verifies (optionally) the certificates when in SSL mode for Keystone and Glance. This should be provided as a base64 encoded PEM certificate.Deployment
To deploy to an existing OpenStack cloud (that already includes Glance, Object storage, and Keystone):
Actions
Juju actions allow specific operations to be performed on a per-unit basis. This charm supports the single action
sync-images, which allows for a one-time image sync from the currently configured mirror list.Juju resources
The charm support juju resources, which is handy in offline deployments. Prefetch the snaps:
Provide downloaded snaps as resources to the application:
Bugs
Please report bugs on Launchpad.
For general charm questions refer to the OpenStack Charm Guide.