Skip to content

Commit

Permalink
Fix fb_systemd on hosts without networkd (#236)
Browse files Browse the repository at this point in the history
Test Plan:
Tested that this didn't result in a networkd config change on CentOS9, and
that it stops managing the networkd config on CentOS8, which is fine since we
aren't using networkd on CentOS8 at least internally.

anitazha did some testing of this internal to Meta already, plus
I've rolled this out to the SCALE infra

Differential Revision: D55154300

fbshipit-source-id: db4822e2df0ab65258a204c881afd042898cd0a5
  • Loading branch information
jaymzh authored and facebook-github-bot committed Mar 22, 2024
1 parent 5960b3d commit 7c455a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cookbooks/fb_systemd/recipes/networkd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#

fb_helpers_gated_template '/etc/systemd/networkd.conf' do
only_if { node['fb_systemd']['networkd']['enable'] }
allow_changes node.nw_changes_allowed?
source 'systemd.conf.erb'
owner node.root_user
Expand Down

0 comments on commit 7c455a2

Please sign in to comment.