Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
- name: checkout
uses: actions/checkout@v1
- name: lint
uses: FastRobot/chef-cookbook-action@master
uses: FastRobot/chef-cookbook-action@main
with:
chef_actions_task: 'lint'
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
default['frPlex']['media']['nfs'] = 'some.lan.host:/exported/media'
default['frPlex']['mount_nfs'] = true
default['frPlex']['manage_zfs'] = true
default['frPlex']['plex_claim'] = nil
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
chef_version '>= 13.0'
supports 'ubuntu', '>= 16.04'

version '0.3.0'
version '0.3.2'

depends 'docker', '~> 5.0'
11 changes: 8 additions & 3 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
package 'zfsutils-linux'
# I manually ran build@docker1:~$ sudo zpool create tank vdb vdc -f

execute 'zpool create tank vdb vdc -f' do
not_if 'zpool list | grep tank'
execute '/sbin/zpool create tank vdb vdc -f' do
not_if '/sbin/zpool list | grep tank'
only_if { node['frPlex']['manage_zfs'] }
end

Expand Down Expand Up @@ -70,10 +70,15 @@
tag 'plexpass'
end

plex_env = %w[VERSION=latest PLEX_UID=1023 PLEX_GID=1023]
if node['frPlex']['plex_claim']
plex_env << "PLEX_CLAIM=#{node['frPlex']['plex_claim']}"
end

docker_container 'plex' do
repo 'plexinc/pms-docker'
tag 'plexpass'
env ['VERSION=latest', 'PLEX_UID=1023', 'PLEX_GID=1023']
env plex_env
restart_policy 'always'
network_mode 'host'
volumes %w(plex-config:/config
Expand Down