---
# Copyright 2015, Rackspace US, Inc.
# 
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# TODO(stevelle) front the API w/ Apache
- include: gnocchi_pre_install.yml
- include: gnocchi_install.yml
- include: gnocchi_post_install.yml
- include: gnocchi_upstart_init.yml

- include: gnocchi_db_setup.yml
  run_once: true

- include: gnocchi_service_setup.yml
  run_once: true

- include: gnocchi_apache.yml
  when: gnocchi_use_mod_wsgi | bool

- include: gnocchi_policy_setup.yml
  run_once: true


---
# Copyright 2015, Rackspace US, Inc.
# 
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# TODO(stevelle) front the API w/ Apache
- include: gnocchi_pre_install.yml
- include: gnocchi_install.yml
- include: gnocchi_post_install.yml
- include: gnocchi_upstart_init.yml

- include: gnocchi_service_setup.yml
  run_once: true

# N.B. Must occur after service setup, as this may perform calls to Swift
- include: gnocchi_db_setup.yml
  run_once: true

- include: gnocchi_apache.yml
  when: gnocchi_use_mod_wsgi | bool

- include: gnocchi_policy_setup.yml
  run_once: true


Reorder service user and db setup to fix Swift
Reorder service user and db setup to fix Swift
