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

enhance: add opensuse leap 15 vagrant #3329

Merged

Conversation

LaurenceJJones
Copy link
Contributor

Testing new development installation script:

warning development script is only meant for testing purposes please dont run on your production server

vagrant@localhost:~> curl https://install.dev.crowdsec.net|sudo repo=crowdsec-testing sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 14202  100 14202    0     0  78030      0 --:--:-- --:--:-- --:--:-- 78032
Detected operating system as opensuse/15.6.
Checking for curl...
Detected curl...
Downloading repository file: https://packagecloud.io/install/repositories/crowdsec/crowdsec-testing/config_file.repo?os=rpm_any&dist=rpm_any&source=script
done.

Automatically importing the following key:

  Repository:       crowdsec_crowdsec-testing
  Key Fingerprint:  62E5 CC8C F50B 7B79 C02A 79C1 67EE 2E83 8FEA 572E
  Key Name:         https://packagecloud.io/crowdsec/crowdsec-testing (https://packagecloud.io/docs#gpg_signing) <[email protected]>
  Key Algorithm:    RSA 4096
  Key Created:      Wed 09 Jun 2021 12:24:09 PM UTC
  Key Expires:      (does not expire)
  Subkey:           32C2CDA325FF0E35 2021-06-09 [does not expire]
  Rpm Name:         gpg-pubkey-8fea572e-60c0b2e9



    Note: A GPG pubkey is clearly identified by its fingerprint. Do not rely on the key's name. If
    you are not sure whether the presented key is authentic, ask the repository provider or check
    their web site. Many providers maintain a web page showing the fingerprints of the GPG keys they
    are using.
Retrieving repository 'crowdsec_crowdsec-testing' metadata ..................................................................................................................................[done]
Building repository 'crowdsec_crowdsec-testing' cache .......................................................................................................................................[done]
Specified repositories have been refreshed.
Retrieving repository 'crowdsec_crowdsec-testing-source' metadata ...........................................................................................................................[done]
Building repository 'crowdsec_crowdsec-testing-source' cache ................................................................................................................................[done]
Specified repositories have been refreshed.

vagrant@localhost:~> zypper install crowdsec
Root privileges are required to run this command.
vagrant@localhost:~> sudo !!
sudo zypper install crowdsec
Retrieving repository 'Update repository of openSUSE Backports' metadata ....................................................................................................................[done]
Building repository 'Update repository of openSUSE Backports' cache .........................................................................................................................[done]
Retrieving repository 'Non-OSS Repository' metadata .........................................................................................................................................[done]
Building repository 'Non-OSS Repository' cache ..............................................................................................................................................[done]
Retrieving repository 'Open H.264 Codec (openSUSE Leap)' metadata ...........................................................................................................................[done]
Building repository 'Open H.264 Codec (openSUSE Leap)' cache ................................................................................................................................[done]
Retrieving repository 'Main Repository' metadata ............................................................................................................................................[done]
Building repository 'Main Repository' cache .................................................................................................................................................[done]
Retrieving repository 'Update repository with updates from SUSE Linux Enterprise 15' metadata ...............................................................................................[done]
Building repository 'Update repository with updates from SUSE Linux Enterprise 15' cache ....................................................................................................[done]
Retrieving repository 'Main Update Repository' metadata .....................................................................................................................................[done]
Building repository 'Main Update Repository' cache ..........................................................................................................................................[done]
Retrieving repository 'Update Repository (Non-Oss)' metadata ................................................................................................................................[done]
Building repository 'Update Repository (Non-Oss)' cache .....................................................................................................................................[done]
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: 1: nothing provides 'crontabs' needed by the to be installed crowdsec-1.6.4~rc2-1.el9.x86_64
 Solution 1: do not install crowdsec-1.6.4~rc2-1.el9.x86_64
 Solution 2: break crowdsec-1.6.4~rc2-1.el9.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c/d/?] (c): 2

Resolving dependencies...
Resolving package dependencies...

The following NEW package is going to be installed:
  crowdsec

1 new package to install.

Package download size:    74.1 MiB

Package install size change:
              |     248.4 MiB  required by packages that will be installed
   248.4 MiB  |  -      0 B    released by packages that will be removed

Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y):
Retrieving: crowdsec-1.6.4~rc2-1.el9.x86_64 (crowdsec_crowdsec-testing)                                                                                                        (1/1),  74.1 MiB
Retrieving: crowdsec-1.6.4~rc2-1.el9.x86_64.rpm ................................................................................................................................[done (18.4 MiB/s)]

Checking for file conflicts: ................................................................................................................................................................[done]
warning: /var/cache/zypp/packages/crowdsec_crowdsec-testing/crowdsec-1.6.4~rc2-1.el9.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3cdf0db4: NOKEY
/bin/bash
Creating acquisition configuration
/usr/share/crowdsec/wizard.sh: line 136: ps: command not found
INFO[2024-11-12 18:09:54] crowdsec_wizard: using journald for 'sshd'
Machine 'f1e8af87e0fc4c27b074667d2e2ad402GYlMqABcHBjCRrm4' successfully added to the local API.
API credentials written to '/etc/crowdsec/local_api_credentials.yaml'.
level=info msg="Wrote index to /etc/crowdsec/hub/.index.json"
INFO[2024-11-12 18:09:56] crowdsec_wizard: Installing collection 'crowdsecurity/linux'
updated /var/lib/crowdsec/data/GeoLite2-City.mmdb
updated /var/lib/crowdsec/data/GeoLite2-ASN.mmdb
installed crowdsecurity/linux
INFO[2024-11-12 18:09:59] crowdsec_wizard: Installing collection 'crowdsecurity/sshd'
installed crowdsecurity/sshd
installed crowdsecurity/whitelists
Get started with CrowdSec:
 * Detailed guides are available in our documentation: https://docs.crowdsec.net
 * Configuration items created by the community can be found at the Hub: https://hub.crowdsec.net
 * Gain insights into your use of CrowdSec with the help of the console https://app.crowdsec.net
(1/1) Installing: crowdsec-1.6.4~rc2-1.el9.x86_64 ...........................................................................................................................................[done]
vagrant@localhost:~> cscli metrics
FATA[2024-11-12T18:11:44Z] while reading yaml file: open /etc/crowdsec/config.yaml: permission denied
vagrant@localhost:~> sudo !!
sudo cscli metrics
Local API Metrics:
╭────────────────────┬────────┬──────╮
│ Route              │ Method │ Hits │
├────────────────────┼────────┼──────┤
│ /v1/heartbeat      │ GET    │ 1    │
│ /v1/usage-metrics  │ POST   │ 1    │
│ /v1/watchers/login │ POST   │ 1    │
╰────────────────────┴────────┴──────╯

Local API Machines Metrics:
╭──────────────────────────────────────────────────┬───────────────┬────────┬──────╮
│ Machine                                          │ Route         │ Method │ Hits │
├──────────────────────────────────────────────────┼───────────────┼────────┼──────┤
│ f1e8af87e0fc4c27b074667d2e2ad402GYlMqABcHBjCRrm4 │ /v1/heartbeat │ GET    │ 1    │
╰──────────────────────────────────────────────────┴───────────────┴────────┴──────╯

vagrant@localhost:~> cat /etc/crowdsec/acquis.yaml
#Generated acquisition file - wizard.sh (service: sshd) / files :
journalctl_filter:
 - _SYSTEMD_UNIT=sshd.service
labels:
  type: syslog
---

Copy link

@LaurenceJJones: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.

  • /kind feature
  • /kind enhancement
  • /kind refactoring
  • /kind fix
  • /kind chore
  • /kind dependencies
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

Copy link

@LaurenceJJones: There are no area labels on this PR. You can add as many areas as you see fit.

  • /area agent
  • /area local-api
  • /area cscli
  • /area appsec
  • /area security
  • /area configuration
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

@LaurenceJJones
Copy link
Contributor Author

Link #3218

@LaurenceJJones
Copy link
Contributor Author

/kind chore
/area configuration

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.48%. Comparing base (dd52e13) to head (2434c12).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3329      +/-   ##
==========================================
- Coverage   58.51%   58.48%   -0.04%     
==========================================
  Files         351      351              
  Lines       37676    37676              
==========================================
- Hits        22047    22035      -12     
- Misses      13732    13742      +10     
- Partials     1897     1899       +2     
Flag Coverage Δ
bats 41.29% <ø> (-0.02%) ⬇️
unit-linux 34.46% <ø> (-0.01%) ⬇️
unit-windows 29.67% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LaurenceJJones
Copy link
Contributor Author

Link #2818

Copy link
Contributor

@sabban sabban left a comment

Choose a reason for hiding this comment

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

lgtm

@LaurenceJJones LaurenceJJones merged commit 4be84b8 into crowdsecurity:master Nov 13, 2024
17 checks passed
@LaurenceJJones LaurenceJJones deleted the opensuse_15_vagrant branch November 13, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants