---
# Copyright 2017, 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.

rdo_package: "https://rdoproject.org/repos/openstack-ocata/rdo-release-ocata.rpm"

packages_install:
  - '@Development Tools'
  - bridge-utils
  - curl
  - ethtool
  - git
  - iputils
  - lvm2
  - python
  - python-devel
  - tmux
  - vim
  - xfsprogs

packages_remove: []

swap_create_command: "dd if=/dev/zero of=/openstack/swap.img bs={{ bootstrap_host_swap_size }}G count=1"
rc_local: /etc/rc.d/rc.local
rc_local_insert_before: "^touch /var/lock/subsys/local$"


---
# Copyright 2017, 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.

rdo_package: "https://rdoproject.org/repos/openstack-ocata/rdo-release-ocata.rpm"

packages_install:
  - '@Development Tools'
  - bridge-utils
  - curl
  - ethtool
  - git
  - iputils
  - lvm2
  - python
  - python-devel
  - tmux
  - vim
  - xfsprogs

packages_remove: []

swap_create_command: "dd if=/dev/zero of=/openstack/swap.img bs=1M count={{ bootstrap_host_swap_size*1024 }}"
rc_local: /etc/rc.d/rc.local
rc_local_insert_before: "^touch /var/lock/subsys/local$"


Change swap creation command for CentOS
Change swap creation command for CentOS

Changed the dd command arguments for swap file creation on CentOS 7
to use multiple smaller blocks that equal bootstrap_host_swap_size
to work around a memory exhaustion issue

Change-Id: I4f4750f74d31421c428cb75b7a2176d262ea79ec
Closes-Bug: #1667747
