Skip to content

Commit ac723c5

Browse files
jaymzhfacebook-github-bot
authored andcommitted
Fix broken dep between fb_systemd and fb_networkd (facebook#258)
Differential Revision: D69275131 fbshipit-source-id: 0cb03d101d64e6fa272890b32e306c84c1749ac6
1 parent fd0e533 commit ac723c5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cookbooks/fb_init_sample/recipes/default.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@
7979
include_recipe 'fb_hostconf'
8080
include_recipe 'fb_sysctl'
8181
# HERE: networking
82-
include_recipe 'fb_users'
82+
# until we defined a UID_MAP that works with testing, this can't
83+
# run in kitchen tests
84+
# include_recipe 'fb_users'
8385
if node.centos?
8486
# We turn this off because the override causes intermittent failures in
8587
# Travis when rsyslog is restarted

cookbooks/fb_systemd/recipes/networkd.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#
2020

2121
fb_helpers_gated_template '/etc/systemd/networkd.conf' do
22-
only_if { node['fb_systemd']['networkd']['enable'] }
22+
only_if { defined?(FB::Networkd) && node['fb_systemd']['networkd']['enable'] }
2323
allow_changes node.nw_changes_allowed?
2424
source 'systemd.conf.erb'
2525
owner node.root_user

0 commit comments

Comments
 (0)