Commit Graph

15 Commits

Author SHA1 Message Date
Ghanshyam Mann e06f50cb06 Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Change-Id: I73df79a8698625815ea4e3099904da448a49887e
2024-02-24 11:42:30 -08:00
katarimanoj 916e715036 Swift: Replace hiera by lookup
The hiera function is deprecated and does not work with the latest
hieradata version 5. It should be replaced by the new lookup
function[1].

[1] https://puppet.com/docs/puppet/7/hiera_automatic.html

With the lookup function, we can define value type and merge behavior,
but these are kept default at this moment to limit scope of this change
to just simple replacement. Adding value type might be useful to make
sure the value is in expected type (especially when a boolean value is
expected), but we will revisit that later.

example:
lookup(<NAME>, [<VALUE TYPE>], [<MERGE BEHAVIOR>], [<DEFAULT VALUE>])

Change-Id: I6ff74931b9ac95c7c2b134c249797e5b74c6471d
2022-04-21 16:20:19 +05:30
Takashi Kajinami 03edf2ab71 Enable configuration of swift-recon-cron job
Related-Bug: #1937929
Depends-on: https://review.opendev.org/694451
Change-Id: I09d3b93b0f01fb1a790324ee23ce16d4301c6d6c
2021-07-25 17:07:14 +09:00
Christian Schwede e7cb55d97b Use correct memcached IPs for Swift object-expirer
The memcached IP is not properly set in case of separate storage nodes.
Until now, these were only set if the Swift proxy node was also
configured on the same node; however, this is not the case with separate
storage nodes. The service would still run, but was not able to use any
cache and logging errors therefore.

Closes-Bug: 1889663
Change-Id: I70ac9fcd3f74975c96c715ecbc818e6606ff4517
2020-08-17 15:29:28 +00:00
Tobias Urdin 1523a4b804 Convert all class usage to relative names
Change-Id: Ib2ed745b682cf12f9469a5a64451adcabec400af
2019-12-08 23:23:25 +01:00
Christian Schwede ffd524d7f1 Create Swift directory d1 if needed
Swift added a requirement that storage directories must exist before
using them. In case of the d1 directory in TripleO - used when there are
no "real disks" - it has to be created by TripleO in advance.

Related-Bug: 1729569
Change-Id: I49e395ac379ced01adb60d8d9f951c08718b1c61
2018-01-11 06:06:55 +00:00
Steve Baker 94f13e6608 Ensure hiera step value is an integer
The step is typically set with the hieradata setting an integer value:

  {"step": 1}

However it would be useful for the value to be a string so that
substitutions are possible, for example:

  {"step": "%{::step}"}

This change ensures the step parameter defaults to an integer by
calling Integer(hiera('step'))

This change was made by manually removing the undef defaults from
fluentd.pp, uchiwa.pp, and sensu.pp then bulk updating with:

    find ./ -type f -print0 |xargs -0 sed -i "s/= hiera('step')/= Integer(hiera('step'))/"

Change-Id: I8a47ca53a7dea8391103abcb8960a97036a6f5b3
2017-06-14 14:31:52 +12:00
Christian Schwede 199d9b7888 Add missing Swift base class
The Swift base class is required if the SwiftStorageRole
is used without the SwiftRingBuilder role.

Change-Id: I496b65dc53c03c0711d21f98627cc21be653ca5d
2016-12-20 12:34:40 +01:00
Christian Schwede 659cdf1851 Include swift::storage::loopbacks class
This makes it possible to create loopback devices for Swift by using
additional Hieradata. For example, to create a 100M loopback device that
will be mounted on /srv/node/d1:

  parameter_defaults:
    ControllerExtraConfig:
      swift::storage::loopbacks::args: {"d1": {'seek': '100000'}}

Depends-On: I11a230b7cf08a4cc2a144d9af0e6c81bb3827348
Change-Id: I8741acc8afa1f1d23c5b25fa4bf27622f674a561
2016-11-30 21:03:25 +00:00
Giulio Fidente 555e6acc03 Include ::swift::config in Swift API and Storage roles
This changes makes the Swift API and Storage roles to include the
::swift::config class, as we do for the other OpenStack services,
which is useful to push arbitrary config settings into Swift.

Change-Id: Iaf2c2f0f0103fe9264ce875099a1578b353a5558
2016-10-07 14:57:01 +02:00
Emilien Macchi 779753d415 Fix Swift manifest for Puppet4 deployment
1) swift/ringbuilder: seed must be a String
Because we use validate_re in puppet-swift and puppet4 requires the
regex to be a string, not an integer.

2) Fix Swift package name
In puppet4, we need the resource title, not the resource name.

Change-Id: I50cea96d45e0eb46c19040d9a7105ab72c2dbef7
2016-09-21 16:31:39 -04:00
Jenkins bbf9cde2fd Merge "Allow use of raw disks for Swift storage role" 2016-08-18 04:38:26 +00:00
Carlos Camacho 689d80e971 Fix parameters and headers inconsistency in the puppet manifests.
As we are staring to manually check overcloud services
the first step is to check that the puppet profiles
are all aligned.

Changes applied:

  No logic added or removed in this submission.

  Removed unused parameters.

  Align header comments structure.

  All profiles parameters sorted following:
  "Mandatory params first sorted alphabetically
  then optional params sorted alphabetically."

Note: Following submissions will check pacemaker,
cinder, mistral and redis services in the base profiles
as some of them has the $pacemaker_master parameter
defaulted to true.

Change-Id: I2f91c3f6baa33f74b5625789eec83233179a9655
2016-08-08 22:44:01 +02:00
Giulio Fidente 03b0d2093b Allow use of raw disks for Swift storage role
Adds a call to swift::storage::disks to make it partition additional
disks to use with Swift.

Depends-On: I3692b17988f8eacb7b8a7df1006a7fe24f587065
Change-Id: Iac75cf2244339fae444be5859b7583e80bafc4e2
2016-08-04 00:17:30 +02:00
Steven Hardy b88cf72bcd Add puppet profile for swift storage
Breaks out the swift storage configuration from t-h-t to a
composable profile

Change-Id: Ie68d7eccf4938bdbdea93327af0638b3fd002b3e
Partially-Implements: blueprint refactor-puppet-manifests
2016-06-22 13:47:54 +00:00