@@ -49,7 +50,7 @@ Before generating the json files,we need to do some preparation:
...
@@ -49,7 +50,7 @@ Before generating the json files,we need to do some preparation:
* -a amd64: specifies the CPU architecture.
* -a amd64: specifies the CPU architecture.
* -d /var/www/html/stack: specifies the base directory where the metadata will be written to. For images, the path will be /opt/stack/images/streams/v1..
* -d /var/www/html/stack: specifies the base directory where the metadata will be written to. For images, the path will be /opt/stack/images/streams/v1..
## Generate tools json file:
## Generate tools json file for simplestreams:
```shell
```shell
juju metadata generate-tools -d /var/www/html/stack/ --stream released
juju metadata generate-tools -d /var/www/html/stack/ --stream released
...
@@ -57,14 +58,8 @@ Before generating the json files,we need to do some preparation:
...
@@ -57,14 +58,8 @@ Before generating the json files,we need to do some preparation:
Tips:
Tips:
`/var/www/html` is the Apache server default directory
`/var/www/html` is the default directory of Apache server
## Use the validation command to ensure iamge and tools are available for juju to use:
```shell
juju metadata validate-images
juju metadata validate-tools
```
## Download tool files:
## Download tool files:
...
@@ -83,9 +78,23 @@ Before generating the json files,we need to do some preparation:
...
@@ -83,9 +78,23 @@ Before generating the json files,we need to do some preparation:
sudo chmod-R 777 ./*
sudo chmod-R 777 ./*
```
```
## Use the validation commands to ensure image and tools are available for juju to use:
```shell
juju metadata validate-images
juju metadata validate-tools
```
## Bootstrap Juju
## Bootstrap Juju
```shell
```shell
juju switch openstack
juju switch openstack
juju bootstrap
juju bootstrap
```
```
And then you can try to deploy services by using ```juju deploy```, for example: