Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wazuh-deploy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MEDINA
Public
wazuh-deploy
Commits
1974fa65
Commit
1974fa65
authored
3 years ago
by
Zitnik, Anze
Browse files
Options
Downloads
Patches
Plain Diff
Update ansible tasks for installing and running clouditor. Using clouditor v1.3.9.
parent
0bc1f0b7
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/clouditor/Makefile
+8
-1
8 additions, 1 deletion
ansible/clouditor/Makefile
ansible/provision-clouditor.yml
+11
-2
11 additions, 2 deletions
ansible/provision-clouditor.yml
with
19 additions
and
3 deletions
ansible/clouditor/Makefile
+
8
−
1
View file @
1974fa65
build
:
go
install
google.golang.org/protobuf/cmd/protoc-gen-go
\
google.golang.org/grpc/cmd/protoc-gen-go-grpc
\
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
\
github.com/googleapis/gnostic/apps/protoc-gen-openapi
go generate ./...
&&
go build ./...
run
:
cd
clouditor
&&
go run cmd/engine/engine.go
--db-in-memory
\ No newline at end of file
go run cmd/engine/engine.go
--db-in-memory
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ansible/provision-clouditor.yml
+
11
−
2
View file @
1974fa65
...
...
@@ -9,6 +9,7 @@
-
gcc
-
wget
-
make
-
protobuf-compiler
state
:
present
become
:
yes
-
name
:
Download Golang installer
...
...
@@ -26,10 +27,18 @@
git
:
repo
:
https://github.com/clouditor/clouditor.git
dest
:
/home/vagrant/clouditor
force
:
yes
version
:
v1.3.9
-
name
:
Copy Makefile
copy
:
src
:
./clouditor/Makefile
dest
:
~/Makefile
dest
:
/home/vagrant/clouditor/Makefile
-
name
:
Build Clouditor
make
:
chdir
:
/home/vagrant/clouditor
target
:
build
environment
:
PATH
:
"
{{
ansible_env.PATH
}}:/home/vagrant/.go/bin:/home/vagrant/go/bin"
-
name
:
Create Clouditor log file
file
:
path
:
/var/log/clouditor.log
...
...
@@ -39,7 +48,7 @@
become
:
yes
-
name
:
Run Clouditor in background
shell
:
chdir
:
~
/clouditor
chdir
:
/home/vagrant
/clouditor
executable
:
/bin/bash
cmd
:
"
(nohup
~/.go/bin/go
run
cmd/engine/engine.go
--db-in-memory
</dev/null
>/var/log/clouditor.log
2>&1
&
sleep
1)"
# see https://ansibledaily.com/execute-detached-process-with-ansible/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment