outputs:
image_name:
description: Image Name
value: { get_param: image_name}
~~~
And as an example the following httpd configuration:
~~~
Alias "/private" "/var/www/test/"
<Directory /var/www/test/>
#<Location "/private">
#DocumentRoot "/var/www/test/"
AuthType Basic
AuthName "Secure"
AuthBasicProvider file
AuthUserFile /etc/httpd/test_password
Order allow,deny
Allow from all
Require valid-user
#</Location>
</Directory>
# htpasswd -c /etc/httpd/test_password USER
~~~
With this in place all variations of the location allow for the stack to be created (complete), however only the 3rd (the uncommented) options actually creates an image that is usable.
I have tested this and it does not seem to be working:
~~~ version: 2014-10-16
heat_template_
description: A hot template for provisioning an Glance Image
parameters:
image_name:
type: string
default: "Fedora23"
container_format:
type: string
default: "bare"
constraints:
- allowed_values: [ "ami", "ari", "aki", "bare", "ova", "ovf"]
disk_format:
type: string
default: "qcow2"
constraints:
- allowed_values: [ "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso" ]
location: USER:<email address hidden> /private/ Fedora- Cloud-Base- 23-20151030. x86_64. qcow2" OPENSTACK. ENV.com/ private/ Fedora- Cloud-Base- 23-20151030. x86_64. qcow2" /download. fedoraproject. org/pub/ fedora/ linux/releases/ 23/Cloud/ x86_64/ Images/ Fedora- Cloud-Base- 23-20151030. x86_64. qcow2"
type: string
#default: "http://
#default: "http://
default: "https:/
public:
type: boolean
default: false
protected:
type: boolean
default: false
disk_min:
type: number
default: 0
ram_min:
type: number
default: 0
resources:
image: _format: {get_param: container_format}
type: OS::Glance::Image
properties:
container
disk_format: {get_param: disk_format}
is_public: {get_param: public}
location: {get_param: location}
min_disk: {get_param: disk_min}
min_ram: {get_param: ram_min}
name: {get_param: image_name}
protected: {get_param: protected}
outputs:
image_name:
description: Image Name
value: { get_param: image_name}
~~~
And as an example the following httpd configuration:
~~~ ovider file test_password test_password USER
Alias "/private" "/var/www/test/"
<Directory /var/www/test/>
#<Location "/private">
#DocumentRoot "/var/www/test/"
AuthType Basic
AuthName "Secure"
AuthBasicPr
AuthUserFile /etc/httpd/
Order allow,deny
Allow from all
Require valid-user
#</Location>
</Directory>
# htpasswd -c /etc/httpd/
~~~
With this in place all variations of the location allow for the stack to be created (complete), however only the 3rd (the uncommented) options actually creates an image that is usable.