Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Debian packaging config files from Opensearch #118

Merged
merged 7 commits into from
Jan 19, 2024

Conversation

f-galland
Copy link
Member

Description

This PR adds back the distribution/packages/src/deb/debian/ folder from the opensearch-build repo in order to have the wazuh-indexer user properly created.

Issues Resolved

Resolves #101

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • GitHub issue/PR created in OpenSearch documentation repo for the required public documentation changes (#[Issue/PR number])

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

distribution/packages/src/deb/debian/postinst Outdated Show resolved Hide resolved
distribution/packages/src/deb/debian/postinst Outdated Show resolved Hide resolved
distribution/packages/src/deb/debian/postinst Outdated Show resolved Hide resolved
@f-galland f-galland requested a review from a team as a code owner January 17, 2024 12:14
Copy link
Member

@AlexRuiz7 AlexRuiz7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Packages built successfully!

https://github.com/wazuh/wazuh-indexer/actions/runs/7583241973

The wazuh-indexer user is created and the packages installed successfully!

vagrant@ubuntu-jammy:~$ sudo su
root@ubuntu-jammy:/home/vagrant# cd /vagrant
root@ubuntu-jammy:/vagrant# apt-get install coreutils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
coreutils is already the newest version (8.32-4.1ubuntu1).
coreutils set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@ubuntu-jammy:/vagrant# dpkg -i wazuh-indexer-4.9.0-1_amd64_1786bce.deb 
Selecting previously unselected package wazuh-indexer.
(Reading database ... 64005 files and directories currently installed.)
Preparing to unpack wazuh-indexer-4.9.0-1_amd64_1786bce.deb ...
Running Wazuh Indexer Pre-Installation Script
Unpacking wazuh-indexer (4.9.0) ...
Setting up wazuh-indexer (4.9.0) ...
Running Wazuh Indexer Post-Installation Script
### NOT starting on installation, please execute the following statements to configure wazuh-indexer service to start automatically using systemd
 sudo systemctl daemon-reload
 sudo systemctl enable wazuh-indexer.service
### You can start wazuh-indexer service by executing
 sudo systemctl start wazuh-indexer.service
root@ubuntu-jammy:/vagrant#  sudo systemctl daemon-reload
 sudo systemctl enable wazuh-indexer.service
Synchronizing state of wazuh-indexer.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable wazuh-indexer
Created symlink /etc/systemd/system/multi-user.target.wants/wazuh-indexer.service → /lib/systemd/system/wazuh-indexer.service.
root@ubuntu-jammy:/vagrant# users
vagrant vagrant
root@ubuntu-jammy:/vagrant# sudo systemctl enable wazuh-indexer.service
Synchronizing state of wazuh-indexer.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable wazuh-indexer
root@ubuntu-jammy:/vagrant# cut -d: -f1 /etc/passwd
root
daemon
bin
sys
sync
games
man
lp
mail
news
uucp
proxy
www-data
backup
list
irc
gnats
nobody
systemd-network
systemd-resolve
messagebus
systemd-timesync
syslog
_apt
tss
uuidd
tcpdump
sshd
pollinate
landscape
fwupd-refresh
vagrant
ubuntu
lxd
wazuh-indexer
root@ubuntu-jammy:/vagrant# 

@AlexRuiz7 AlexRuiz7 merged commit b7034e7 into 4.9.0 Jan 19, 2024
7 checks passed
@AlexRuiz7 AlexRuiz7 deleted the 101-wazuh-indexer-user-doesnt-exist branch January 19, 2024 14:22
AlexRuiz7 added a commit that referenced this pull request Mar 8, 2024
* Adding debian packaging config files from Opensearch

* Copy debian/ folder to the build dir for debmake to parse

* Remove redundant steps from debian/postinst

---------

Co-authored-by: Álex Ruiz <[email protected]>
AlexRuiz7 added a commit that referenced this pull request Apr 24, 2024
* Adding debian packaging config files from Opensearch

* Copy debian/ folder to the build dir for debmake to parse

* Remove redundant steps from debian/postinst

---------

Co-authored-by: Álex Ruiz <[email protected]>
AlexRuiz7 added a commit that referenced this pull request Jun 28, 2024
* Adding debian packaging config files from Opensearch

* Copy debian/ folder to the build dir for debmake to parse

* Remove redundant steps from debian/postinst

---------

Co-authored-by: Álex Ruiz <[email protected]>
AlexRuiz7 added a commit that referenced this pull request Aug 20, 2024
* Adding debian packaging config files from Opensearch

* Copy debian/ folder to the build dir for debmake to parse

* Remove redundant steps from debian/postinst

---------

Co-authored-by: Álex Ruiz <[email protected]>
AlexRuiz7 added a commit that referenced this pull request Sep 9, 2024
* Adding debian packaging config files from Opensearch

* Copy debian/ folder to the build dir for debmake to parse

* Remove redundant steps from debian/postinst

---------

Co-authored-by: Álex Ruiz <[email protected]>
AlexRuiz7 added a commit that referenced this pull request Sep 9, 2024
* Adding debian packaging config files from Opensearch

* Copy debian/ folder to the build dir for debmake to parse

* Remove redundant steps from debian/postinst

---------

Co-authored-by: Álex Ruiz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wazuh-indexer user does not exist in deb packages
2 participants