Skip to content

Commit

Permalink
making changes per GH-429 feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
iancward committed May 2, 2017
1 parent cc45c15 commit bdec562
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions recipes/disk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# example configuration:
# node['datadog']['disk']['instances'] = [
# {
# 'use_mount' => 'yes',
# 'use_mount' => true,
# 'excluded_filesystems' => [
# 'tmpfs'
# ],
Expand All @@ -23,9 +23,9 @@
# '/dev/sda2'
# ],
# 'excluded_disk_re' => '/dev/sde.*',
# 'tag_by_filesystem' => 'no',
# 'tag_by_filesystem' => false,
# 'excluded_mountpoint_re' => '/mnt/somebody-elses-problem.*',
# 'all_partitions' => 'no'
# 'all_partitions' => false
# }
# ]

Expand Down
12 changes: 6 additions & 6 deletions spec/integrations/disk_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
init_config: {}
instances:
- use_mount: 'yes'
- use_mount: true
excluded_filesystems:
- tmpfs
excluded_disks:
- /dev/sda1
- /dev/sda2
excluded_disk_re: '/dev/sde.*'
tag_by_filesystem: 'no'
tag_by_filesystem: false
excluded_mountpoint_re: '/mnt/somebody-elses-problem.*'
all_partitions: 'no'
all_partitions: false
EOF

cached(:chef_run) do
Expand All @@ -23,13 +23,13 @@
disk: {
instances: [
{
use_mount: 'yes',
use_mount: true,
excluded_filesystems: ['tmpfs'],
excluded_disks: ['/dev/sda1', '/dev/sda2'],
excluded_disk_re: '/dev/sde.*',
tag_by_filesystem: 'no',
tag_by_filesystem: false,
excluded_mountpoint_re: '/mnt/somebody-elses-problem.*',
all_partitions: 'no'
all_partitions: false
}
]
}
Expand Down

0 comments on commit bdec562

Please sign in to comment.