{"id":20111319,"url":"https://github.com/openstack/puppet-glance","last_synced_at":"2025-04-05T00:09:00.432Z","repository":{"id":7855945,"uuid":"9228000","full_name":"openstack/puppet-glance","owner":"openstack","description":"OpenStack Glance Puppet Module. Mirror of code maintained at opendev.org.","archived":false,"fork":false,"pushed_at":"2025-03-14T16:06:51.000Z","size":2213,"stargazers_count":55,"open_issues_count":0,"forks_count":62,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-28T23:07:57.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://opendev.org/openstack/puppet-glance","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openstack.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-04-04T21:03:45.000Z","updated_at":"2025-03-14T16:06:55.000Z","dependencies_parsed_at":"2023-11-24T17:29:07.251Z","dependency_job_id":"6d39d2de-172a-47c4-a2ea-681f8ed688d3","html_url":"https://github.com/openstack/puppet-glance","commit_stats":null,"previous_names":[],"tags_count":142,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fpuppet-glance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fpuppet-glance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fpuppet-glance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fpuppet-glance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openstack","download_url":"https://codeload.github.com/openstack/puppet-glance/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266564,"owners_count":20910836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T18:15:33.799Z","updated_at":"2025-04-05T00:09:00.415Z","avatar_url":"https://github.com/openstack.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Team and repository tags\n========================\n\n[![Team and repository tags](https://governance.openstack.org/tc/badges/puppet-glance.svg)](https://governance.openstack.org/tc/reference/tags/index.html)\n\n\u003c!-- Change things from this point on --\u003e\n\nglance\n=======\n\n#### Table of Contents\n\n1. [Overview - What is the glance module?](#overview)\n2. [Module Description - What does the module do?](#module-description)\n3. [Setup - The basics of getting started with glance](#setup)\n4. [Implementation - An under-the-hood peek at what the module is doing](#implementation)\n5. [Limitations - OS compatibility, etc.](#limitations)\n6. [Development - Guide for contributing to the module](#development)\n7. [Release Notes - Release notes for the project](#release-notes)\n8. [Contributors - Those with commits](#contributors)\n9. [Repository - The project source code repository](#repository)\n\nOverview\n--------\n\nThe glance module is a part of [OpenStack](https://opendev.org/openstack), an effort by the OpenStack infrastructure team to provide continuous integration testing and code review for OpenStack and OpenStack community projects as part of the core software. The module its self is used to flexibly configure and manage the image service for OpenStack.\n\nModule Description\n------------------\n\nThe glance module is a thorough attempt to make Puppet capable of managing the entirety of glance.  This includes manifests to provision such things as keystone endpoints, RPC configurations specific to glance, and database connections.  Types are shipped as part of the glance module to assist in manipulation of configuration files.\n\nThis module is tested in combination with other modules needed to build and leverage an entire OpenStack software stack.\n\nSetup\n-----\n\n**What the glance module affects**\n\n* [Glance](https://docs.openstack.org/glance/latest/), the image service for OpenStack.\n\n### Installing glance\n\n    puppet module install openstack/glance\n\n### Beginning with glance\n\nTo utilize the glance module's functionality you will need to declare multiple resources. This is not an exhaustive list of all the components needed, we recommend you consult and understand the [core openstack](https://docs.openstack.org) documentation.\n\n**Define a glance node**\n\n```puppet\nclass { 'glance::api::authtoken':\n  password             =\u003e '12345',\n  auth_url             =\u003e 'http://172.17.0.3:5000',\n  www_authenticate_uri =\u003e 'http://172.17.0.3:5000',\n}\n\nclass { 'glance::api::db':\n  database_connection =\u003e 'mysql+pymysql://glance:12345@127.0.0.1/glance',\n}\n\nclass { 'glance::api':\n  enabled_backends    =\u003e ['my_store:file'],\n  default_backend     =\u003e 'my_store:file',\n}\n\nglance::backend::multistore::file {\n  'my_store': ;\n}\n```\n\n**Setup postgres node glance**\n\n```puppet\nclass { 'glance::db::postgresql':\n  password =\u003e '12345',\n}\n```\n\n**Setup mysql node for glance**\n\n```puppet\nclass { 'glance::db::mysql':\n  password      =\u003e '12345',\n  allowed_hosts =\u003e '%',\n}\n```\n\n**Setup up keystone endpoints for glance on keystone node**\n\n```puppet\nclass { 'glance::keystone::auth':\n  password     =\u003e '12345'\n  email        =\u003e 'glance@example.com',\n  public_url   =\u003e 'http://172.17.0.3:9292',\n  admin_url    =\u003e 'http://172.17.0.3:9292',\n  internal_url =\u003e 'http://172.17.1.3:9292',\n  region       =\u003e 'example-west-1',\n}\n```\n\n**Setup up notifications for multiple RabbitMQ nodes**\n\n```puppet\nclass { 'glance::notify::rabbitmq':\n  default_transport_url      =\u003e os_transport_url({\n    'transport'    =\u003e 'rabbit',\n    'hosts'        =\u003e ['host1', 'host2'],\n    'username'     =\u003e 'glance',\n    'password'     =\u003e 'secret',\n    'virtual_host' =\u003e 'glance',\n  )},\n  notification_transport_url =\u003e os_transport_url({\n    'transport'    =\u003e 'rabbit',\n    'hosts'        =\u003e ['host1', 'host2'],\n    'username'     =\u003e 'notify',\n    'password'     =\u003e 'secret',\n    'virtual_host' =\u003e 'notify',\n  )},\n}\n```\n\n### Types\n\n#### glance_api_config\n\nThe `glance_api_config` provider is a children of the ini_setting provider. It allows one to write an entry in the `/etc/glance/glance-api.conf` file.\n\n```puppet\nglance_api_config { 'DEFAULT/image_cache_dir' :\n  value =\u003e /var/lib/glance/image-cache,\n}\n```\n\nThis will write `image_cache_dir=/var/lib/glance/image-cache` in the `[DEFAULT]` section.\n\n##### name\n\nSection/setting name to manage from `glance-api.conf`\n\n##### value\n\nThe value of the setting to be defined.\n\n##### secret\n\nWhether to hide the value from Puppet logs. Defaults to `false`.\n\n##### ensure_absent_val\n\nIf value is equal to ensure_absent_val then the resource will behave as if `ensure =\u003e absent` was specified. Defaults to `\u003cSERVICE DEFAULT\u003e`\n\n#### glance_cache_config\n\nThe `glance_cache_config` provider is a children of the ini_setting provider. It allows one to write an entry in the `/etc/glance/glance-cache.conf` file.\n\n```puppet\nglance_cache_config { 'DEFAULT/image_cache_stall_time' :\n  value =\u003e 86400,\n}\n```\n\nThis will write `image_cache_stall_time=86400` in the `[DEFAULT]` section.\n\n##### name\n\nSection/setting name to manage from `glance-cache.conf`\n\n##### value\n\nThe value of the setting to be defined.\n\n##### secret\n\nWhether to hide the value from Puppet logs. Defaults to `false`.\n\n##### ensure_absent_val\n\nIf value is equal to ensure_absent_val then the resource will behave as if `ensure =\u003e absent` was specified. Defaults to `\u003cSERVICE DEFAULT\u003e`\n\nImplementation\n--------------\n\n### glance\n\nglance is a combination of Puppet manifest and ruby code to deliver configuration and extra functionality through types and providers.\n\nLimitations\n------------\n\n* Only supports configuring the file, swift and rbd storage backends.\n\nDevelopment\n-----------\n\nDeveloper documentation for the entire puppet-openstack project.\n\n* https://docs.openstack.org/puppet-openstack-guide/latest/\n\nRelease Notes\n-------------\n\n* https://docs.openstack.org/releasenotes/puppet-glance\n\nContributors\n------------\n\n* https://github.com/openstack/puppet-glance/graphs/contributors\n\nRepository\n----------\n\n* https://opendev.org/openstack/puppet-glance\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenstack%2Fpuppet-glance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenstack%2Fpuppet-glance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenstack%2Fpuppet-glance/lists"}