Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mirror
sumologic-collector-chef-cookbook
Commits
0aa3c43d
Commit
0aa3c43d
authored
Feb 25, 2016
by
Yoway Buorn
Browse files
fixed syntax error and minor typos. added Windows 2008r2
parent
e6a63e8c
Changes
4
Hide whitespace changes
Inline
Side-by-side
.kitchen.yml
View file @
0aa3c43d
...
...
@@ -6,10 +6,17 @@ provisioner:
name
:
chef_zero
platforms
:
-
name
:
centos-7.1
-
name
:
centos-6.7
-
name
:
centos-7.1
-
name
:
debian-8.1
-
name
:
ubuntu-14.04
-
name
:
windows-2008r2
driver
:
box
:
opentable/win-2008r2-standard-amd64-nocm
transport
:
name
:
winrm
password
:
vagrant
username
:
vagrant
-
name
:
windows-2012r2
driver
:
box
:
opentable/win-2012r2-standard-amd64-nocm
...
...
@@ -28,6 +35,7 @@ suites:
SUMO_ACCESS_ID
:
<%= ENV['SUMO_ACCESS_ID'] %>
SUMO_ACCESS_KEY
:
<%= ENV['SUMO_ACCESS_KEY'] %>
excludes
:
-
windows-2008r2
-
windows-2012r2
-
name
:
windows
data_bags_path
:
test/integration/data_bags
...
...
@@ -38,8 +46,10 @@ suites:
SUMO_ACCESS_ID
:
<%= ENV['SUMO_ACCESS_ID'] %>
SUMO_ACCESS_KEY
:
<%= ENV['SUMO_ACCESS_KEY'] %>
excludes
:
-
centos-7.1
-
centos-6.7
-
centos-7.1
-
debian-8.1
-
ubuntu-14.04
-
name
:
installer-resource
run_list
:
-
recipe[installer-resource]
...
...
@@ -55,8 +65,7 @@ suites:
SUMO_ACCESS_ID
:
<%= ENV['SUMO_ACCESS_ID'] %>
SUMO_ACCESS_KEY
:
<%= ENV['SUMO_ACCESS_KEY'] %>
excludes
:
-
ubuntu-14.04
-
centos-7.1
-
centos-6.7
-
centos-7.1
-
debian-8.1
-
ubuntu-14.04
recipes/install.rb
View file @
0aa3c43d
...
...
@@ -32,7 +32,7 @@
#
Chef
::
Log
.
info
"Starting Installation."
Chef
::
Log
.
info
" Creating Sumo Logic director at
#{
node
[
'sumologic'
][
'installDir'
]
}
"
Chef
::
Log
.
info
" Creating Sumo Logic director
y
at
#{
node
[
'sumologic'
][
'installDir'
]
}
"
case
node
[
'platform_family'
]
when
'rhel'
,
'amazon'
,
'linux'
...
...
@@ -41,4 +41,4 @@ when 'debian'
include_recipe
'sumologic-collector::debian'
when
'windows'
include_recipe
'sumologic-collector::windows'
end
recipes/install_proxy.rb
View file @
0aa3c43d
...
...
@@ -34,7 +34,7 @@ include_recipe 'sumologic-collector::sumojson'
# TODO: : Support windows
return
unless
node
[
'platform'
]
!=
'windows'
Chef
::
Log
.
info
" Creating Sumo Logic director at
#{
node
[
'sumologic'
][
'installDir'
]
}
"
Chef
::
Log
.
info
" Creating Sumo Logic director
y
at
#{
node
[
'sumologic'
][
'installDir'
]
}
"
directory
node
[
'sumologic'
][
'installDir'
]
do
owner
'root'
...
...
recipes/windows.rb
View file @
0aa3c43d
...
...
@@ -35,7 +35,7 @@
if
::
Win32
::
Service
.
exists?
"sumo-collector"
Chef
::
Log
.
info
"Sumo Logic Collector found."
Chef
::
Log
.
info
"Checking for Sumo Logic Collector Updates and will "
\
"reinstall director at
#{
node
[
'sumologic'
][
'installDir'
]
}
"
"reinstall director
y
at
#{
node
[
'sumologic'
][
'installDir'
]
}
"
# We only want to deploy sumo when there's a new version available
# to preserve idempotency .
...
...
@@ -65,7 +65,7 @@ else
include_recipe
'sumologic-collector::sumojson'
end
Chef
::
Log
.
info
"Installing Sumo Logic director at
#{
node
[
'sumologic'
][
'installDir'
]
}
"
Chef
::
Log
.
info
"Installing Sumo Logic director
y
at
#{
node
[
'sumologic'
][
'installDir'
]
}
"
# We only want to deploy sumo when there's a new version available
# to preserve idempotency .
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment