Skip to content

Commit

Permalink
Merge branch 'development' into bugfix/17236_stop_logstash_when_no_pi…
Browse files Browse the repository at this point in the history
…pelines
  • Loading branch information
nilsver authored Jun 14, 2024
2 parents ce4a03f + 5283cda commit fb0a53a
Show file tree
Hide file tree
Showing 29 changed files with 1,121 additions and 891 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,41 +26,58 @@ jobs:
echo "TAG=$TAG" >> $GITHUB_ENV
shell: bash

- name: Check if Tag Exists
id: check_tag
run: |
if git rev-parse "refs/tags/${{ env.TAG }}" >/dev/null 2>&1; then
echo "Tag ${{ env.TAG }} already exists, exiting."
exit 1
fi
shell: bash

- name: Set Version
if: success()
run: echo "VERSION=${{ env.TAG }}" >> $GITHUB_ENV

- name: Run Docker Container
if: success()
run: docker run --privileged -d --name builder --network host rockylinux:9 /bin/sleep infinity

- name: Install build tools RPM
if: success()
run: |
docker cp ./ builder:/build
docker exec builder bash -c "yum install -y epel-release && yum install -y make git mock"
docker exec builder bash -c "rm -rf /etc/mock/default.cfg"
- name: Setup SDK
if: success()
run: |
docker exec builder bash -c "curl https://raw.githubusercontent.com/redBorder/repoinit/master/sdk9.cfg > /build/sdk9.cfg"
docker exec builder bash -c "echo \"config_opts['use_host_resolv'] = True\" >> /build/sdk9.cfg"
docker exec builder bash -c "ln -s /build/sdk9.cfg /etc/mock/default.cfg"
- name: Build RPM using mock
if: success()
run: |
docker exec builder bash -c "git config --global --add safe.directory /build"
docker exec builder bash -c "cd /build/ && VERSION=${{ env.TAG }} make rpm"
- name: Copy RPMS
if: success()
run: |
docker cp builder:/build/packaging/rpm/pkgs/. ./rpms
- name: Delete non-.rpm files
if: success()
run: |
find ./rpms -type f -not -name '*.rpm' -exec rm {} \;
- name: Release
if: success()
uses: softprops/action-gh-release@v1
with:
files: ./rpms/*
tag_name: ${{ env.TAG }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,59 @@
cookbook-rb-manager CHANGELOG
===============

## 2.0.1

- Miguel Alvarez
- [d6ecac2][e748afe][2405993] Fix lint issues
- [292288d] Add hosts in node data
- [fd63ad2] Fix prepare and configure
- [ac54c02] Proper use of s3 hosts
- [f08e447] Configure minio nodes and load balancer
- [78f1562][4db8fa1][e101c2d][3220e71][4ec77f8][d89bd26][ed91ff3] Updates
- [6e7680a] Delete resources/templates/default/minio.erb

## 2.0.0

- Miguel Álvarez
- [a28b728] Configure minio nodes and load balancer (#145)

## 1.9.3

- Miguel Negrón
- [a12be85] Improvement/fix lint (#148)

## 1.9.2

- Miguel Negrón
- [65696ef] configure not removing geoip. Geoip wont be in the list because is no longer a service

## 1.9.1

- David Vanhoucke
- [f22a469] add temporary variables in node.run_state
- Miguel Negrón
- [7d26b70] Update README.md
- [d29155f] Update rpm.yml
- [4a4efaa] Update metadata.rb
- [1120885] Merge pull request #142 from redBorder/bugfix/missing_specific_dist_kernel_info_in_motd
- [31682a0] Add full kernel release info in motd

## 1.9.0

- Miguel Negrón
- [ef94e3c] Add configure common cookbook call (#140)

## 1.8.0
- David Vanhoucke
- [c2df76a] add postfix service
- Luis Blanco
- [48c4142] add ale service in redborder full installation

## 1.7.10

- nilsver
- [f66e148] added conditional check on pipelines

## 1.7.9

- Miguel Álvarez
Expand Down
35 changes: 14 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
# manager Cookbook
# cookbook-rb-manager
[![Build Status][build-shield]][build-url]
[![Linters][linters-shield]][linters-url]
[![License][license-shield]][license-url]

<!-- Badges -->
[build-shield]: https://github.com/redBorder/cookbook-rb-manager/actions/workflows/rpm.yml/badge.svg?branch=master
[build-url]: https://github.com/redBorder/cookbook-rb-manager/actions/workflows/rpm.yml?query=branch%3Amaster
[linters-shield]: https://github.com/redBorder/cookbook-rb-manager/actions/workflows/lint.yml/badge.svg?event=push
[linters-url]: https://github.com/redBorder/cookbook-rb-manager/actions/workflows/lint.yml
[license-shield]: https://img.shields.io/badge/license-AGPLv3-blue.svg
[license-url]: https://github.com/cookbook-rb-manager/blob/HEAD/LICENSE

Cookbook to configure a redborder manager

## Requirements

depends 'kafka', '0.0.1'
depends 'zookeeper', '0.0.1'

### Platforms

- Rocky Linux 9

### Chef

- Chef 12.0 or later

# BUILDING

- Build rpm package for redborder platform:
* git clone https://github.com/redborder/cookbook-rb-manager.git
* cd cookbook-rb-manager
* make
* RPM packages is under packaging/rpm/pkgs/
- Chef 15.7.0 or later

## Contributing

Expand All @@ -33,10 +31,5 @@ depends 'zookeeper', '0.0.1'
6. Submit a Pull Request using Github

## License
GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007

## Authors
Carlos Javier Mateos <[email protected]>
Juan Jesús Prieto <[email protected]>
Enrique Jimenez <[email protected]>
Alberto Rodríguez <[email protected]>
GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007
Loading

0 comments on commit fb0a53a

Please sign in to comment.