从本地存储库部署 charm 安装程序

从本地存储库部署 charm 安装程序

我正在使用 openstack charm bundle 在 MAAS 设置上安装 openstack。我的要求是从本地存储库安装服务。[不要与本地 charm 混淆]

例如,在 charm 包中配置了源:cloud:trusty-kilo。我希望它指向本地存储库。[截至目前,我只想克隆公共存储库并在本地维护它。稍后我想对 openstack 代码进行更改并更新此存储库。]

  头孢菌素:
    注释:
      gui-x: '750'
      gui-y: '500'
    魅力:cs:trusty/ceph-38
    单位数:3
    选项:
      fsid:5a791d94-980b-11e4-b6f6-3c970e8b1cf7
      监控机密:AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
      osd 设备:/dev/sdb
      osd-重新格式化:'是'
      来源:cloud:trusty-kilo

答案1

ceph charm 的“source”配置选项有多种使用方式。只要本地仓库也由远程系统(如 http://)提供服务并可访问,就可以使用 source 配置选项。

以下是 charm 中 config.yaml 文件的摘录:

  source:
    type: string
    default:
    description: |
      Optional configuration to support use of additional sources such as:

        - ppa:myteam/ppa
        - cloud:trusty-proposed/kilo
        - http://my.archive.com/ubuntu main

      The last option should be used in conjunction with the key configuration
      option.

      Note that a minimum ceph version of 0.48.2 is required for use with this
      charm which is NOT provided by the packages in the main Ubuntu archive
      for precise but is provided in the Ubuntu cloud archive.

查看作用于源值的底层代码中的以下文档字符串也可能会有所帮助:

Add a package source to this system.

@param source: a URL or sources.list entry, as supported by
add-apt-repository(1). Examples::

ppa:charmers/example
deb https://stub:[email protected]/ubuntu trusty main

In addition:
'proposed:' may be used to enable the standard 'proposed'
pocket for the release.
'cloud:' may be used to activate official cloud archive pockets,
such as 'cloud:icehouse'
'distro' may be used as a noop

@param key: A key to be added to the system's APT keyring and used
to verify the signatures on packages. Ideally, this should be an
ASCII format GPG public key including the block headers. A GPG key
id may also be used, but be aware that only insecure protocols are
available to retrieve the actual public key from a public keyserver
placing your Juju environment at risk. ppa and cloud archive keys
are securely added automtically, so sould not be provided.

相关内容