Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
serverdensity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Barney Hanlon
serverdensity
Commits
bb73cf7e
Commit
bb73cf7e
authored
9 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
SV-49012 Remove php-apcu as a requirement
parent
f641fc4a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
defaults/main.yml
+7
-0
7 additions, 0 deletions
defaults/main.yml
tasks/main.yml
+6
-5
6 additions, 5 deletions
tasks/main.yml
templates/config.cfg
+1
-1
1 addition, 1 deletion
templates/config.cfg
with
14 additions
and
6 deletions
defaults/main.yml
+
7
−
0
View file @
bb73cf7e
...
@@ -11,3 +11,10 @@ sd_groups:
...
@@ -11,3 +11,10 @@ sd_groups:
apache
:
'
none'
apache
:
'
none'
mysql
:
'
none'
mysql
:
'
none'
proxy
:
'
none'
proxy
:
'
none'
sd_repo_public_key_uri
:
'
https://www.serverdensity.com/downloads/boxedice-public.key'
sd_agent_plugins_dir
:
'
/usr/bin/sd-agent/plugins'
sd_plugins_files_dir
:
"
{{inventory_dir}}/files/sd-plugins"
sd_template_config
:
'
config.cfg'
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
6
−
5
View file @
bb73cf7e
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
-
name
:
'
ServerDensity
|
Install
Public
Repo
Key'
-
name
:
'
ServerDensity
|
Install
Public
Repo
Key'
apt_key
:
apt_key
:
url=
'https://www.serverdensity.com/downloads/boxedice-
public
.
key
'
url=
"{{ sd_repo_
public
_
key
_uri }}"
state=present
state=present
-
name
:
'
ServerDensity
|
Add
ServerDensity
Repository
To
Apt'
-
name
:
'
ServerDensity
|
Add
ServerDensity
Repository
To
Apt'
...
@@ -29,19 +29,20 @@
...
@@ -29,19 +29,20 @@
-
name
:
'
ServerDensity
|
Create
Plugins
Directory'
-
name
:
'
ServerDensity
|
Create
Plugins
Directory'
file
:
file
:
dest=
'/usr/bin/
sd
-
agent
/
plugins
'
dest=
"{{
sd
_
agent
_
plugins
_dir }}"
state=directory
state=directory
mode=755
mode=755
-
name
:
'
ServerDensity
|
Copy
Plugins'
-
name
:
'
ServerDensity
|
Copy
Plugins'
copy
:
copy
:
src={{
inventory_dir}}/files/sd-plugins
/{{item.1}}
src=
"
{{
sd_plugins_files_dir }}
/{{item.1}}
"
dest=
/usr/bin/
sd
-
agent
/
plugins/{{item.1}}
dest=
"{{
sd
_
agent
_
plugins
_dir }}
/{{item.1}}
"
with_items
:
sd_plugins|dictsort
with_items
:
sd_plugins|dictsort
when
:
sd_plugins|length >
0
notify
:
'
ServerDensity
|
Restart
Agent'
notify
:
'
ServerDensity
|
Restart
Agent'
-
name
:
'
ServerDensity
|
Configure
The
Agent'
-
name
:
'
ServerDensity
|
Configure
The
Agent'
template
:
src=config
.cfg
template
:
src=
"{{ sd_template_
config
}}"
dest=/etc/sd-agent/config.cfg
dest=/etc/sd-agent/config.cfg
owner=root
owner=root
group=root
group=root
...
...
This diff is collapsed.
Click to expand it.
templates/config.cfg
+
1
−
1
View file @
bb73cf7e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
sd_url:
{{sd_url}}
sd_url:
{{sd_url}}
agent_key:
{{sd_agent_key}}
agent_key:
{{sd_agent_key}}
plugin_directory:
/usr/bin/
sd
-
agent
/
plugins
plugin_directory:
{{
sd
_
agent
_
plugins
_dir
}}
logging_level:
{{sd_logging_level}}
logging_level:
{{sd_logging_level}}
{%
if
sd_groups.apache
!=
'none'
and
inventory_hostname
in
groups
[sd_groups.apache]
%}
{%
if
sd_groups.apache
!=
'none'
and
inventory_hostname
in
groups
[sd_groups.apache]
%}
...
...
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