Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull in latest from Facebook #25

Merged
merged 189 commits into from
Jul 22, 2024
Merged

Pull in latest from Facebook #25

merged 189 commits into from
Jul 22, 2024

Commits on Apr 28, 2023

  1. Fix lint fire on fbspec.rb

    Summary: Fixes Style/GlobalStdStream in OSS CI
    
    Reviewed By: joshuamiller01
    
    Differential Revision: D45399133
    
    fbshipit-source-id: 5f5f489bc38ec894cfc96e10c15f29e3d451f05e
    dafyddcrosby authored and facebook-github-bot committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    0456085 View commit details
    Browse the repository at this point in the history
  2. fb_helpers: node.disruptable?, a method to define when a host can run…

    … disruptive chef code
    
    Summary:
    
    A method to define when a host can run disruptive chef code.  By default this should be allowed
    during provisioning and boot (when the host is presumably drained and unable to be running
    a workload)
    
    Reviewed By: gogsbread
    
    Differential Revision: D34600530
    
    fbshipit-source-id: d741d256e47df94bd9360dca7bc628b3a45f6d3b
    joshuamiller01 authored and facebook-github-bot committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    78d9eb5 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2023

  1. fb_timers: refactor autostart handling for old systemd versions

    Summary:
    
    Refactor autostart handling for old systemd versions.  This makes the code
    easier to read in differentiating when we're setting up timers the normal way
    (with modern systemd) versus the old way, and will make future transitioning to
    a different model (forthcoming) simpler also.
    
    This should be a no-op; node['packages'] is ohai-time and reordering the evaluation
    within a custom resource should be irrelevant.
    
    Reviewed By: dafyddcrosby
    
    Differential Revision: D45199845
    
    fbshipit-source-id: 12b6ab20c90c59d1c9660f411de9fb29f2b295c4
    joshuamiller01 authored and facebook-github-bot committed May 1, 2023
    Configuration menu
    Copy the full SHA
    3a90afc View commit details
    Browse the repository at this point in the history
  2. Support RHEL_Family in fbit_tmpclean cookbook

    Summary:
    
    As titled. By checking the [chef infra](https://fburl.com/0rmv1bnc) and [Meta implementation](https://fburl.com/code/tzjadwep), we know:
    - *platform*, **centos** and **redhat** are two platforms names
    - *platform_family*, **rhel** is a family name that contains centos, redhat, rocky and more.
    
    More context can be found in this [post](https://fburl.com/workplace/1qm17oop).
    
    It looks we have Centos only in prod ([1](https://fburl.com/scuba/chef/k4nsvzfe) and [2](https://fburl.com/scuba/chef/t6xy763c)),  and CentOS, Redhat and OEL platforms in [IT/Corp](https://fburl.com/scuba/ifs_chef/l0wj716g).  And we have no host running with version<7.
    
    This diff expand actions on CentOS to all other RHEL_Family platforms.
    
    This diff needs stamp from [[chefit](https://www.internalfb.com/permission/group/965392640256092), [hm_data_plane](https://www.internalfb.com/permission/group/437546304210697)]
    
    Reviewed By: joshuamiller01
    
    Differential Revision: D45261981
    
    fbshipit-source-id: 5eded266a277b639ca0723394d937f222908a983
    Li Lei authored and facebook-github-bot committed May 1, 2023
    Configuration menu
    Copy the full SHA
    8f90319 View commit details
    Browse the repository at this point in the history
  3. Support RHEL_Family in fb_chrony cookbook

    Summary:
    
    As titled. By checking the [chef infra](https://fburl.com/0rmv1bnc) and [Meta implementation](https://fburl.com/code/tzjadwep), we know:
    - *platform*, **centos** and **redhat** are two platforms names
    - *platform_family*, **rhel** is a family name that contains centos, redhat, rocky and more.
    
    More context can be found in this [post](https://fburl.com/workplace/1qm17oop).
    
    It looks we have Centos only in prod ([1](https://fburl.com/scuba/chef/k4nsvzfe) and [2](https://fburl.com/scuba/chef/t6xy763c)),  and CentOS, Redhat and OEL platforms in [IT/Corp](https://fburl.com/scuba/ifs_chef/l0wj716g).  And we have no host running with version<7.
    
    This diff just used latest rhel_family? functions and added more supported platforms.  No effects on existing systems.
    
    This diff needs stamp from [hm_data_plane](https://www.internalfb.com/permission/group/437546304210697)
    
    Differential Revision: D45111725
    
    fbshipit-source-id: 6bf7af74b90a741ac71ea19b1bc169f60f4739d0
    Li Lei authored and facebook-github-bot committed May 1, 2023
    Configuration menu
    Copy the full SHA
    4b2b031 View commit details
    Browse the repository at this point in the history
  4. Support RHEL_Family in fb_fstab cookbook

    Summary:
    
    As titled. By checking the [chef infra](https://fburl.com/0rmv1bnc) and [Meta implementation](https://fburl.com/code/tzjadwep), we know:
    - *platform*, **centos** and **redhat** are two platforms names
    - *platform_family*, **rhel** is a family name that contains centos, redhat, rocky and more.
    
    More context can be found in this [post](https://fburl.com/workplace/1qm17oop).
    
    It looks we have Centos only in prod ([1](https://fburl.com/scuba/chef/k4nsvzfe) and [2](https://fburl.com/scuba/chef/t6xy763c)),  and CentOS, Redhat and OEL platforms in [IT/Corp](https://fburl.com/scuba/ifs_chef/l0wj716g).  And we have no host running with version<7.
    
    This diff simply add more supported platforms in the metadata
    
    This diff needs stamp from [hm_data_plane](https://www.internalfb.com/permission/group/437546304210697)
    
    Differential Revision: D45262482
    
    fbshipit-source-id: a1e10897b739c29e96123fcdccf8b038111a3bf3
    Li Lei authored and facebook-github-bot committed May 1, 2023
    Configuration menu
    Copy the full SHA
    6b12bc8 View commit details
    Browse the repository at this point in the history
  5. Support RHEL_Family in fb_hosts cookbook

    Summary:
    
    As titled. By checking the [chef infra](https://fburl.com/0rmv1bnc) and [Meta implementation](https://fburl.com/code/tzjadwep), we know:
    - *platform*, **centos** and **redhat** are two platforms names
    - *platform_family*, **rhel** is a family name that contains centos, redhat, rocky and more.
    
    More context can be found in this [post](https://fburl.com/workplace/1qm17oop).
    
    It looks we have Centos only in prod ([1](https://fburl.com/scuba/chef/k4nsvzfe) and [2](https://fburl.com/scuba/chef/t6xy763c)),  and CentOS, Redhat and OEL platforms in [IT/Corp](https://fburl.com/scuba/ifs_chef/l0wj716g).  And we have no host running with version<7.
    
    This diff expand actions on CentOS to all other RHEL_Family platforms.
    
    This diff simply add more supported platforms in the metadate
    
    This diff needs stamp from [hm_data_plane](https://www.internalfb.com/permission/group/437546304210697)
    
    Differential Revision: D45263447
    
    fbshipit-source-id: 200368833ea06464132953e0fb43966a3c0475fe
    Li Lei authored and facebook-github-bot committed May 1, 2023
    Configuration menu
    Copy the full SHA
    9ef745c View commit details
    Browse the repository at this point in the history
  6. Support RHEL_Family in fb_limits cookbook

    Summary:
    
    As titled. By checking the [chef infra](https://fburl.com/0rmv1bnc) and [Meta implementation](https://fburl.com/code/tzjadwep), we know:
    - *platform*, **centos** and **redhat** are two platforms names
    - *platform_family*, **rhel** is a family name that contains centos, redhat, rocky and more.
    
    More context can be found in this [post](https://fburl.com/workplace/1qm17oop).
    
    It looks we have Centos only in prod ([1](https://fburl.com/scuba/chef/k4nsvzfe) and [2](https://fburl.com/scuba/chef/t6xy763c)),  and CentOS, Redhat and OEL platforms in [IT/Corp](https://fburl.com/scuba/ifs_chef/l0wj716g).  And we have no host running with version<7.
    
    This diff simply add more supported platforms in the metadate
    
    This diff needs stamp from [hm_data_plane](https://www.internalfb.com/permission/group/437546304210697)
    
    Differential Revision: D45263741
    
    fbshipit-source-id: 044c581e251964c725d8fe4741a346ac1d515c3d
    Li Lei authored and facebook-github-bot committed May 1, 2023
    Configuration menu
    Copy the full SHA
    726049d View commit details
    Browse the repository at this point in the history
  7. Support RHEL_Family in fb_motd and fb_motd_settigns cookbooks

    Summary:
    
    As titled. By checking the [chef infra](https://fburl.com/0rmv1bnc) and [Meta implementation](https://fburl.com/code/tzjadwep), we know:
    - *platform*, **centos** and **redhat** are two platforms names
    - *platform_family*, **rhel** is a family name that contains centos, redhat, rocky and more.
    
    More context can be found in this [post](https://fburl.com/workplace/1qm17oop).
    
    It looks we have Centos only in prod ([1](https://fburl.com/scuba/chef/k4nsvzfe) and [2](https://fburl.com/scuba/chef/t6xy763c)),  and CentOS, Redhat and OEL platforms in [IT/Corp](https://fburl.com/scuba/ifs_chef/l0wj716g).  And we have no host running with version<7.
    
    This diff expand actions on CentOS to all other RHEL_Family platforms.
    
    This diff needs stamp from [hm_data_plane](https://www.internalfb.com/permission/group/437546304210697)
    
    Differential Revision: D45263995
    
    fbshipit-source-id: 2c87394d302f94906232e9e897dd65b8ffca3181
    Li Lei authored and facebook-github-bot committed May 1, 2023
    Configuration menu
    Copy the full SHA
    317bde7 View commit details
    Browse the repository at this point in the history
  8. Support RHEL_Family in fb_nsswitch cookbook

    Summary:
    
    As titled. By checking the [chef infra](https://fburl.com/0rmv1bnc) and [Meta implementation](https://fburl.com/code/tzjadwep), we know:
    - *platform*, **centos** and **redhat** are two platforms names
    - *platform_family*, **rhel** is a family name that contains centos, redhat, rocky and more.
    
    More context can be found in this [post](https://fburl.com/workplace/1qm17oop).
    
    It looks we have Centos only in prod ([1](https://fburl.com/scuba/chef/k4nsvzfe) and [2](https://fburl.com/scuba/chef/t6xy763c)),  and CentOS, Redhat and OEL platforms in [IT/Corp](https://fburl.com/scuba/ifs_chef/l0wj716g).  And we have no host running with version<7.
    
    This diff simply add more supported platforms in the metadate
    
    This diff needs stamp from [hm_data_plane](https://www.internalfb.com/permission/group/437546304210697)
    
    Differential Revision: D45264038
    
    fbshipit-source-id: 2bd9d1d0cc81ee9cef8a8b0eba9a36c3a04dd8ec
    Li Lei authored and facebook-github-bot committed May 1, 2023
    Configuration menu
    Copy the full SHA
    c737f35 View commit details
    Browse the repository at this point in the history
  9. Support RHEL_Family in fb_postfix cookbook

    Summary:
    
    As titled. By checking the [chef infra](https://fburl.com/0rmv1bnc) and [Meta implementation](https://fburl.com/code/tzjadwep), we know:
    - *platform*, **centos** and **redhat** are two platforms names
    - *platform_family*, **rhel** is a family name that contains centos, redhat, rocky and more.
    
    More context can be found in this [post](https://fburl.com/workplace/1qm17oop).
    
    It looks we have Centos only in prod ([1](https://fburl.com/scuba/chef/k4nsvzfe) and [2](https://fburl.com/scuba/chef/t6xy763c)),  and CentOS, Redhat and OEL platforms in [IT/Corp](https://fburl.com/scuba/ifs_chef/l0wj716g).  And we have no host running with version<7.
    
    This diff simply add more supported platforms in the metadate
    
    This diff needs stamp from [hm_data_plane](https://www.internalfb.com/permission/group/437546304210697)
    
    Differential Revision: D45264076
    
    fbshipit-source-id: 13415cd3211344b0cadc2538478a2457f8c3c38a
    Li Lei authored and facebook-github-bot committed May 1, 2023
    Configuration menu
    Copy the full SHA
    d74c386 View commit details
    Browse the repository at this point in the history
  10. Support RHEL_Family in fb_profile cookbook

    Summary:
    
    As titled. By checking the [chef infra](https://fburl.com/0rmv1bnc) and [Meta implementation](https://fburl.com/code/tzjadwep), we know:
    - *platform*, **centos** and **redhat** are two platforms names
    - *platform_family*, **rhel** is a family name that contains centos, redhat, rocky and more.
    
    More context can be found in this [post](https://fburl.com/workplace/1qm17oop).
    
    It looks we have Centos only in prod ([1](https://fburl.com/scuba/chef/k4nsvzfe) and [2](https://fburl.com/scuba/chef/t6xy763c)),  and CentOS, Redhat and OEL platforms in [IT/Corp](https://fburl.com/scuba/ifs_chef/l0wj716g).  And we have no host running with version<7.
    
    This diff simply add more supported platforms in the metadate
    
    This diff needs stamp from [hm_data_plane](https://www.internalfb.com/permission/group/437546304210697)
    
    Differential Revision: D45264112
    
    fbshipit-source-id: 112387fbff20bbfedb7a49b926d308a80ef7c4d6
    Li Lei authored and facebook-github-bot committed May 1, 2023
    Configuration menu
    Copy the full SHA
    1940475 View commit details
    Browse the repository at this point in the history
  11. Support RHEL_Family in fb_sysstat cookbook

    Summary:
    
    As titled. By checking the [chef infra](https://fburl.com/0rmv1bnc) and [Meta implementation](https://fburl.com/code/tzjadwep), we know:
    - *platform*, **centos** and **redhat** are two platforms names
    - *platform_family*, **rhel** is a family name that contains centos, redhat, rocky and more.
    
    More context can be found in this [post](https://fburl.com/workplace/1qm17oop).
    
    It looks we have Centos only in prod ([1](https://fburl.com/scuba/chef/k4nsvzfe) and [2](https://fburl.com/scuba/chef/t6xy763c)),  and CentOS, Redhat and OEL platforms in [IT/Corp](https://fburl.com/scuba/ifs_chef/l0wj716g).  And we have no host running with version<7.
    
    This diff simply add more supported platforms in the metadate
    
    This diff needs stamp from [[chefit](https://www.internalfb.com/permission/group/965392640256092), [hm_data_plane](https://www.internalfb.com/permission/group/437546304210697)]
    
    Differential Revision: D45264277
    
    fbshipit-source-id: 3bfd6e6ec59c03b9c9149e24d4d3c3f4cbaf9e93
    Li Lei authored and facebook-github-bot committed May 1, 2023
    Configuration menu
    Copy the full SHA
    a8aa45e View commit details
    Browse the repository at this point in the history
  12. Support RHEL_Family in fb_timer cookbook

    Summary:
    
    As titled. By checking the [chef infra](https://fburl.com/0rmv1bnc) and [Meta implementation](https://fburl.com/code/tzjadwep), we know:
    - *platform*, **centos** and **redhat** are two platforms names
    - *platform_family*, **rhel** is a family name that contains centos, redhat, rocky and more.
    
    More context can be found in this [post](https://fburl.com/workplace/1qm17oop).
    
    It looks we have Centos only in prod ([1](https://fburl.com/scuba/chef/k4nsvzfe) and [2](https://fburl.com/scuba/chef/t6xy763c)),  and CentOS, Redhat and OEL platforms in [IT/Corp](https://fburl.com/scuba/ifs_chef/l0wj716g).  And we have no host running with version<7.
    
    This diff simply add more supported platforms in the metadate
    
    This diff needs stamp from [hm_data_plane](https://www.internalfb.com/permission/group/437546304210697)
    
    Differential Revision: D45264375
    
    fbshipit-source-id: 570242a54d1237259ce2babb6940b2b7e1170561
    Li Lei authored and facebook-github-bot committed May 1, 2023
    Configuration menu
    Copy the full SHA
    21e1a11 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2023

  1. Library functions, logic encoding raid disks, firmwares

    Summary:
    * Moved existing logic to extract disk model, firmware and disks in mdarray as `FB::Storage` methods
    * No logic change to hosts with rootfs mounted on single disk.
    * On hosts where root is mounted on mdarray, we will now encode the sorted models, relative firmwares to aggregation labels.
    ```
    # Separated by __ which is acceptable in ODS
    <CUSTOM_ROOT_DISK_MODEL>:__RAID__MZ1LB1T9HBLS-000FB__MZ1LB1T9HBLS-000FB__;
    <CUSTOM_ROOT_DISK_FIRMWARE>:__RAID__EDW76F2Q__EDW76F2Q__;
    ```
    
    Reviewed By: joshuamiller01
    
    Differential Revision: D45419604
    
    fbshipit-source-id: 25c37ad73ae55c2af609c0bf662400788baf179d
    Saravanan D authored and facebook-github-bot committed May 2, 2023
    Configuration menu
    Copy the full SHA
    b149ef6 View commit details
    Browse the repository at this point in the history
  2. fb_timers: manage timers directly through systemd rather than via nat…

    …ive chef resources
    
    Summary:
    
    Manage timers directly through systemd rather than via native chef resources.  This is much more
    CPU and time performant; managing 50 timer units with the native service chef resource requires
    50 expensive shellouts via systemctl (even when no change needs to be made), which we can collapse into a single
    shellout to gather the state of all 50 units, and then a single call to enable, and start.
    
    Reviewed By: dafyddcrosby
    
    Differential Revision: D45170124
    
    fbshipit-source-id: 43dc16c23d882dec660816290d12f9b451cbdfbe
    joshuamiller01 authored and facebook-github-bot committed May 2, 2023
    Configuration menu
    Copy the full SHA
    3650020 View commit details
    Browse the repository at this point in the history
  3. fb_timers: CPU perf improvements via avoiding read-write loops and no…

    …de.rm
    
    Summary:
    
    If during a loop you modify an element of the node object, and then read from the same ImmutibleHash,
    it causes some kind of overhead which costs non-trivial amounts of CPU when iterating enough times.
    
    In other words: if you modify node.default['something'][...], then read from node['something'], and then
    loop and do that again and again, you get significant perf overhead.
    
    If the read is removed, this overhead is avoided; this diff takes an unnecessary read of `node['fb_timers']['_timer_path']`
    and captures it in an lvar, which saves ~5ms per iteration in my environment.
    
    While we're here, also switch from node.rm to node.rm_default, because that's also much less CPU expensive.
    
    Reviewed By: dafyddcrosby
    
    Differential Revision: D45459381
    
    fbshipit-source-id: c641c67a3a6868a6bccb63d4b507a1d510295dad
    joshuamiller01 authored and facebook-github-bot committed May 2, 2023
    Configuration menu
    Copy the full SHA
    45e9eae View commit details
    Browse the repository at this point in the history

Commits on May 3, 2023

  1. Add attribute to keep service alive

    Summary:
    
    Currently we do not enforce the fluentbit service is set to run at startup and kept running.
    
    One can manually disable/stop the service and it will not self-reenable.
    
    Lets add an attribute to control enforcement of the service state.
    
    Reviewed By: joshuamiller01
    
    Differential Revision: D44970184
    
    fbshipit-source-id: 482ae4678de51a317db3eec3c6f3e0b835be317b
    yee-unit authored and facebook-github-bot committed May 3, 2023
    Configuration menu
    Copy the full SHA
    a297ece View commit details
    Browse the repository at this point in the history
  2. fb_timers: fix require_relative path in libraries_spec to work in GH

    Summary:
    
    Fix require_relative path in libraries_spec to work in GH
    
    Differential Revision: D45500711
    
    fbshipit-source-id: 46df08e140fb11ce08e122546df0110f5e9c4146
    joshuamiller01 authored and facebook-github-bot committed May 3, 2023
    Configuration menu
    Copy the full SHA
    2a8920d View commit details
    Browse the repository at this point in the history

Commits on May 4, 2023

  1. Rollout fb_timers manage directly through systemd rather than via nat…

    …ive chef resources 1% -> 2%
    
    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Reviewed By: dafyddcrosby
    
    Differential Revision: D45501926
    
    fbshipit-source-id: bd522655399aa057425e55824055ebeca0ced08a
    joshuamiller01 authored and facebook-github-bot committed May 4, 2023
    Configuration menu
    Copy the full SHA
    e2f188a View commit details
    Browse the repository at this point in the history
  2. Rollout fb_timers manage directly through systemd rather than via nat…

    …ive chef resources 2% -> 5%
    
    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Reviewed By: dafyddcrosby
    
    Differential Revision: D45501921
    
    fbshipit-source-id: 981413141baca9bfea9d21731fec5b1da96d2b59
    joshuamiller01 authored and facebook-github-bot committed May 4, 2023
    Configuration menu
    Copy the full SHA
    2528edf View commit details
    Browse the repository at this point in the history

Commits on May 5, 2023

  1. Rollout fb_timers manage directly through systemd rather than via nat…

    …ive chef resources 5% -> 15%
    
    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Reviewed By: dafyddcrosby
    
    Differential Revision: D45501924
    
    fbshipit-source-id: 99a79da6c88922783fa855592fc187600fb79dfc
    joshuamiller01 authored and facebook-github-bot committed May 5, 2023
    Configuration menu
    Copy the full SHA
    4af3177 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2023

  1. Rollout fb_timers manage directly through systemd rather than via nat…

    …ive chef resources 15% -> 25%
    
    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Reviewed By: dafyddcrosby
    
    Differential Revision: D45501922
    
    fbshipit-source-id: 39e06bee2ece139b4bec6ab2e452d5fcae41c44b
    joshuamiller01 authored and facebook-github-bot committed May 8, 2023
    Configuration menu
    Copy the full SHA
    abf93e1 View commit details
    Browse the repository at this point in the history
  2. Rollout fb_timers manage directly through systemd rather than via nat…

    …ive chef resources 25% -> 40%
    
    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Reviewed By: dafyddcrosby
    
    Differential Revision: D45501923
    
    fbshipit-source-id: 51fe2cb4e7a62bc150e39ccdfc4f4e0768148326
    joshuamiller01 authored and facebook-github-bot committed May 8, 2023
    Configuration menu
    Copy the full SHA
    a43f414 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2023

  1. Rollout fb_timers manage directly through systemd rather than via nat…

    …ive chef resources 40% -> 60%
    
    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Reviewed By: dafyddcrosby
    
    Differential Revision: D45501918
    
    fbshipit-source-id: db700be5de63820f917a589fa53fbd0f85bcdc3d
    joshuamiller01 authored and facebook-github-bot committed May 9, 2023
    Configuration menu
    Copy the full SHA
    152728b View commit details
    Browse the repository at this point in the history

Commits on May 10, 2023

  1. Rollout fb_timers manage directly through systemd rather than via nat…

    …ive chef resources 60% -> 80%
    
    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Reviewed By: dafyddcrosby
    
    Differential Revision: D45501920
    
    fbshipit-source-id: 97895230dffabc6788c657af49d2c0f1ddaf35c0
    joshuamiller01 authored and facebook-github-bot committed May 10, 2023
    Configuration menu
    Copy the full SHA
    95b69df View commit details
    Browse the repository at this point in the history
  2. Pin c9 rsyslog version in image builds

    Summary:
    
    Newer rsyslog has a bug in container builds where it exits immediately.
    
    While we figure out why (which is more complicated than one would expect), reflect changes in D45715090 into Chef solo runs so that booted container runs (i.e. Chef Solo runs) based on images built with booted container runs (i.e. Tupperware Base Image derivatives, in our case the Sandcastle Worker image) once again work.
    
    Reviewed By: wilkotom
    
    Differential Revision: D45725790
    
    fbshipit-source-id: a943ef64d8bea056ab2243fa7ac0d9d925450d89
    Michael van der Westhuizen authored and facebook-github-bot committed May 10, 2023
    Configuration menu
    Copy the full SHA
    f69fe69 View commit details
    Browse the repository at this point in the history
  3. Rollout fb_timers manage directly through systemd rather than via nat…

    …ive chef resources 80% -> 100%
    
    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Reviewed By: dafyddcrosby
    
    Differential Revision: D45501919
    
    fbshipit-source-id: 24f55f4cf5e24faf24107fc1d7289132768dcf69
    joshuamiller01 authored and facebook-github-bot committed May 10, 2023
    Configuration menu
    Copy the full SHA
    9a5b077 View commit details
    Browse the repository at this point in the history
  4. Add disable PowerShell v2 feature

    Summary:
    
    Reviewed By: AadityaNair
    
    Differential Revision: D45713557
    
    fbshipit-source-id: a4573894ca8b4b6835c39b27f680e9c20ad0bf4b
    Gilbert Sanchez authored and facebook-github-bot committed May 10, 2023
    Configuration menu
    Copy the full SHA
    b35276e View commit details
    Browse the repository at this point in the history
  5. fb_helpers: include cookbook name in error message

    Summary:
    
    Reviewed By: DanielGrzegorzewski
    
    Differential Revision: D45709812
    
    fbshipit-source-id: 981a95f5c31130442ce9fda5b66137fac3226f74
    davide125 authored and facebook-github-bot committed May 10, 2023
    Configuration menu
    Copy the full SHA
    5ec6876 View commit details
    Browse the repository at this point in the history
  6. fb_grub: rework platform logic and add support for Fedora

    Summary: This generally simplifies the existing logic
    
    Reviewed By: dafyddcrosby
    
    Differential Revision: D44694707
    
    fbshipit-source-id: 801370be2a7a4be9ef26827bbd853c1ec14af4de
    davide125 authored and facebook-github-bot committed May 10, 2023
    Configuration menu
    Copy the full SHA
    4c4f02d View commit details
    Browse the repository at this point in the history

Commits on May 12, 2023

  1. New attribute search_enabled

    Summary:
    
    * S341260 revealed that vendor coreboot images have crude assumptions (first 5 lines) to [parse our grub.cfg](https://www.internalfb.com/phabricator/paste/view/P713678956?lines=168-155) and grep for terms like "search"
    * Gated retry, search template code under search_enabled attribute
    * Added logic to darwin fboss recipe to turn off template code that uses search command to hunt for grubenv
    
    Reviewed By: DanielGrzegorzewski
    
    Differential Revision: D45791452
    
    fbshipit-source-id: 9b5b13b850386b1b47d80e3c3313546e96449a36
    Saravanan D authored and facebook-github-bot committed May 12, 2023
    Configuration menu
    Copy the full SHA
    3c08cea View commit details
    Browse the repository at this point in the history
  2. Remove deprecated allow_downgrade, correct version

    Summary:
    
    We recently started pinning a version of rsyslog to work around other bugs, and cargo-culted in an `allow_downgrade` statement.
    
    It seems as though triggering this warning ends up triggering this:
      undefined method `id' for #<Chef::Deprecated::DnfPackageAllowDowngrade:0x0000000007173750>
    
    ... and then the world explodes. Let's avoid that.
    
    Reviewed By: AadityaNair
    
    Differential Revision: D45811785
    
    fbshipit-source-id: adeb428984cbf7d07da738e2b78acaf218956ff6
    Michael van der Westhuizen authored and facebook-github-bot committed May 12, 2023
    Configuration menu
    Copy the full SHA
    a20e9ec View commit details
    Browse the repository at this point in the history

Commits on May 16, 2023

  1. Add whole disks instead of partitions in devices_to_skip

    Summary:
    
    In `storage.rb` there is `devices_to_skip` which is filled with all the devices to skip, which are the ones for / and /boot.
    If / is mounted from a RAID array, all the devices in the array (e.g. /dev/sda1 and /dev/sdb1) are added to devices_to_skip. But when doing so, partitions are added, not disks.
    
    While at at:
    - fix device_name_from_partition() which was unable to handle loop devices and few others
    - fix typos in comments
    - add more tests
    
    Differential Revision: D45199010
    
    fbshipit-source-id: 7f94df0b70ae416c639928255f6b4b401068adf0
    teknoraver authored and facebook-github-bot committed May 16, 2023
    Configuration menu
    Copy the full SHA
    821eaf1 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2023

  1. Remove Rubocop 0.55 shim

    Summary:
    
    Once facebook/between-meals#127 and
    facebook/grocery-delivery#66 have been merged, this
    version shim can go. We now take an allowlist-based approach with 1.3.1+, so
    shouldn't need new shims going forward.
    
    Differential Revision: D45874516
    
    fbshipit-source-id: 15f5d7977dcdb5a426d38cc841a6d54c670b2133
    dafyddcrosby authored and facebook-github-bot committed May 17, 2023
    Configuration menu
    Copy the full SHA
    b40e397 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2023

  1. Bump TargetChefVersion to 14.15.6

    Summary:
    This enables the following cops:
    
    - Chef/Deprecations/DeprecatedShelloutMethods
    - Chef/Deprecations/WindowsVersionHelpers
    - Chef/Modernize/UnnecessaryDependsChef14
    - Chef/Modernize/CronDFileOrTemplate
    - Chef/Modernize/CronManageResource
    - Chef/Modernize/ExecuteScExe
    - Chef/Modernize/ExecuteSysctl
    - Chef/Modernize/ExecuteTzUtil
    - Chef/Modernize/MacOsXUserdefaults
    - Chef/Modernize/OpensslRsaKeyResource
    - Chef/Modernize/OpensslX509Resource
    - Chef/Modernize/PowershellInstallWindowsFeature
    - Chef/Modernize/WindowsScResource
    - Chef/Modernize/SysctlParamResource
    
    Differential Revision: D45967167
    
    fbshipit-source-id: 9491a32ca63b6256f4cb9c54e805a092e110f00a
    dafyddcrosby authored and facebook-github-bot committed May 18, 2023
    Configuration menu
    Copy the full SHA
    58bbbe8 View commit details
    Browse the repository at this point in the history
  2. fix wrong Chef/Meta/NoFileWrites warning

    Summary:
    
    fix wrong Chef/Meta/NoFileWrites warning
    
    Differential Revision: D45910895
    
    fbshipit-source-id: 4148e8a4e469a7a61aad743b4496d16457ee7c4c
    teknoraver authored and facebook-github-bot committed May 18, 2023
    Configuration menu
    Copy the full SHA
    eca119d View commit details
    Browse the repository at this point in the history

Commits on May 22, 2023

  1. Add helper function to check for arista os version

    Summary:
    
    Differential Revision: D45922721
    
    fbshipit-source-id: 5da1d74b71e751f91ec8cfaa92c1c2397dadb7b2
    paqc5 authored and facebook-github-bot committed May 22, 2023
    Configuration menu
    Copy the full SHA
    a940d8d View commit details
    Browse the repository at this point in the history

Commits on May 31, 2023

  1. fb_fstab: stop setting up bpf mount point via fb_fstab

    Summary:
    
    systemd has automatically mounted /sys/fs/bpf for many years, such that there's no need to mount it
    via other means, so update fb_fstab to not automatically unmount it.
    
    Differential Revision: D46297493
    
    fbshipit-source-id: 315a81c2e774ba4e06227d975f3ea4d8d4dc6601
    joshuamiller01 authored and facebook-github-bot committed May 31, 2023
    Configuration menu
    Copy the full SHA
    a4e3a60 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2023

  1. Deal with stop_pending state on fluentbit

    Summary:
    This causes a bunch of chef errors, because the chef windows_service resource is not smart enough to wait for `stop pending` to complete
    before starting a service, and the fluentbit restart script does a background restart rather than a foreground one, causing this to fall over randomly
    on a small percentage of nodes.  Becasuse we know it's coming back in that case, we can just defer doing this until the next run if the service is in that state
    
    Differential Revision: D46238248
    
    fbshipit-source-id: 5b70fbb6250abe509295fe43067903fbeab4d6d0
    anotherjaymz authored and facebook-github-bot committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    54065b2 View commit details
    Browse the repository at this point in the history
  2. Allow mount point exclusions by regex

    Summary:
    
    The `.snapshot` directory on the NetApp is a special directory that only gets mounted when its accessed. Since we have `enable_unmount=true`, Chef will attempt to unmount the volume and fail if its in use. Currently we can only ignore by prefix, I decided to add an ignore by regex to give a bit more control vs doing something an include.
    
    Differential Revision: D46297189
    
    fbshipit-source-id: 4e5c614218c271d5c8df9883cb754faf0e5abd91
    My Tran authored and facebook-github-bot committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    18d346a View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. fb_systemd: add knob to control whether nspawn is installed

    Summary:
    
    nspawn is split into a subpackage in most distributions, add a knob to
    explicitly control whether it's installed
    
    Differential Revision: D46625711
    
    fbshipit-source-id: ecdaa22e2eb671b0876ea58d14482117df1fe86e
    davide125 authored and facebook-github-bot committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    7b252fc View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

  1. Report to build dot file of cookbook dependencies

    Summary: A quick way to visualize cookbook dependency graph
    
    Differential Revision: D46596467
    
    fbshipit-source-id: 051ebeab21d2871fe9bbdff224d08d443edc87d2
    dafyddcrosby authored and facebook-github-bot committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    1e44fe6 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2023

  1. fb_networking_settings/fb_fboss: helper+fix to make VLAN w/ networkd …

    …(and use it)
    
    Summary:
    Adds a helper function that will configure VLAN for network-scripts and systemd-networkd.
    
    For some reason, the netdev was only added after systemd-networkd restarts (i.e. `networkctl reload` did not work). This case was added to fb_networkd.
    
    Differential Revision: D46560287
    
    fbshipit-source-id: d5089b428f250f0840270cd2fdc22bd8d999ceb8
    anitazha authored and facebook-github-bot committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    073e35c View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2023

  1. bump TargetRubyVersion to 2.5

    Differential Revision: D46901582
    
    fbshipit-source-id: 71d44f678e4717976f3fdc11b991ebf137acc70f
    dafyddcrosby authored and facebook-github-bot committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    6e7a2a5 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2023

  1. Delete fb_smartctl cookbook

    Summary:
    
    **Internal:**
    With the cleanup of removing `/opt/homebrew`, this helps removes the symlink to the path since it no longer exists.
    
    This gets rid of the need for the symlink of `/opt/homebrew/bin/smartctl` plus gets rid of the 2014 Mac Mini hardware.
    
    There shouldn't have any (CPE-specific) use case for 2014 mac minis, so any code explicitly targeting them is almost certainly a safe candidate for summary removal.
    
    As someone once stated, "*they should be lovingly and affectionately hit with a blackjack and have it confiscated. :)*"
    
    Plus, `fb_macos_shared::smartmontools` recipe already handles the nix version of this tool, making this cookbook redundant.
    
    Differential Revision: D46707384
    
    fbshipit-source-id: c6475554f3c878270fa760a9b4ad8df377d532d3
    mar-jac authored and facebook-github-bot committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    f933c45 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2023

  1. Fix Rubocop lints

    Summary: Internal linter didn't fire on this in D43891262, breaking OSS CI.
    
    Differential Revision: D47217370
    
    fbshipit-source-id: b506e7d22a34ae6be2468b768c95e554afe04483
    dafyddcrosby authored and facebook-github-bot committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    7cbfb03 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2023

  1. Cleanup uses of FB031

    Summary:
    
    This has been migrated off foodcritic to rubocop
    
    Differential Revision: D47346023
    
    fbshipit-source-id: 8485a3a3d002311f4dd379ac0b01d2b545c2e9cf
    Olivier Raginel authored and facebook-github-bot committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    4e7e6e1 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. remove exclusion on Lint/BinaryOperatorWithIdenticalOperands

    Summary:
    Was fixed in D34117172
    
    Differential Revision: D47267603
    
    fbshipit-source-id: 45819a012a83bb8fea802e247265660e25e4c2fd
    dafyddcrosby authored and facebook-github-bot committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    0f5330e View commit details
    Browse the repository at this point in the history
  2. fb_syslog: add a knob to gate package managing and remove internal hack

    Summary:
    
    Fixes: facebook#223
    
    Differential Revision: D47370901
    
    fbshipit-source-id: 360fc4f40cec63a7ff3b0b4a36ee131122f3faee
    davide125 authored and facebook-github-bot committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    2ecede1 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2023

  1. fb_helpers: make unit testing gated_template resource easier

    Summary:
    
    Unit tests against anything which uses the gated_template resource are difficult.
    This changes the way the resource is handled slightly to ease testing.
    With that fix, some of the previous hacks to make this spec possible are no longer necessary,
    so clean up the UserID crap
    
    Within the custom resource, this switches from `converge_by` to use a template resource.  This should
    be equivalent (if not DRY), but is what makes the unit testing work properly.  I tested the usual flow
    for this via taste-tester, to confirm:
    
    - Within permission, the file is not changed, and permission is requested
    - With permission, the file is changed, and permission request is cleaned up
    - With no change required, nothing happens
    
    Differential Revision: D46749176
    
    fbshipit-source-id: 1f0bd74d2a2929dcf62841b94f9bfa182f660369
    joshuamiller01 authored and facebook-github-bot committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    4a3bccf View commit details
    Browse the repository at this point in the history
  2. fb_networkd: add unit tests for network, link, and netdev template re…

    …ndering
    
    Summary:
    
    fb_networkd: add unit tests for network, link, and netdev template rendering
    
    Differential Revision: D46488690
    
    fbshipit-source-id: c020557ab4632d82b8aba886b4458bcc68570c0b
    joshuamiller01 authored and facebook-github-bot committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    43f95e7 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2023

  1. Get chef working for rhel 9

    Summary:
    Bootstrap chef core cookbooks to RHEL 9
    
    Differential Revision: D47532272
    
    fbshipit-source-id: ff6d26338709f65e0eb17df20106761e0a2b68f2
    John Timon authored and facebook-github-bot committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    125d5dc View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2023

  1. fix(fb_modprobe, fb_systemd): updates to recipes for ubuntu jammy (fa…

    …cebook#224)
    
    Summary:
    
    ## Description
    
    `fb_modprobe`
    - Updates the cookbook metadata to support `ubuntu`.
    
    `fb_systemd`
    - Adds the required `systemd-timesyncd` package when `timesyncd` is enabled.
    - Adds the `dns` resolver to the `fb_nsswitch` configuration to be used as a fallback to `systemd-resolved`. This is a recommended configuration for `nss-resolve`: https://man7.org/linux/man-pages/man8/nss-resolve.8.html.
    
    ## Impact
    
    These cookbooks will now be able to converge on Ubuntu Jammy.
    
    Pull Request resolved: facebook#224
    
    Differential Revision: D47484960
    
    fbshipit-source-id: 2eefa662eeec5762f9927c69c4f344693d871c9b
    PatrickDale authored and facebook-github-bot committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    06352f5 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. Drop Ruby 2.4 CI test

    Summary: Ruby 2.4 is EOL, and the tests will fail when we bump RuboCop versions
    
    Differential Revision: D47607760
    
    fbshipit-source-id: ff0929a52599214bad944ef772b556e8467670ef
    dafyddcrosby authored and facebook-github-bot committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    e2ff147 View commit details
    Browse the repository at this point in the history
  2. Add Ruby 2.7, 3.0, 3.1 CI tests

    Summary: Ruby 3.1 is what's running in the latest Chef Infra client versions.
    
    Differential Revision: D47609973
    
    fbshipit-source-id: 526242491c6bc7495d4ded115b087ae39eef988f
    dafyddcrosby authored and facebook-github-bot committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    75901a7 View commit details
    Browse the repository at this point in the history
  3. bump to rubocop 1.25.1 and cookstyle 7.32.1

    Summary:
    These versions work on Ruby 2.5. The warnings from the newly disabled
    `Chef/Sharing` lints are new, so we'll ratchet those back in along with the two new
    `rubocop:todo` lines. `Chef/Style/CommentSentenceSpacing` is broken in 7.32.1,
    fixed in 7.32.3
    
    Differential Revision: D47609492
    
    fbshipit-source-id: 06f3ef56c7e177254d71d660656b0a7397563ad7
    dafyddcrosby authored and facebook-github-bot committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    a8b18b7 View commit details
    Browse the repository at this point in the history
  4. Change TargetChefVersion to 16.18.0

    Summary:
    Activates the following lints which, while enabled in cookstyle.yml, weren't running due to the unmet
    
    - Chef/Modernize/LibarchiveFileResource
    - Chef/Deprecations/MacosUserdefaultsGlobalProperty
    - Chef/Deprecations/PoiseArchiveUsage
    - Chef/Modernize/PowershellScriptExpandArchive
    - Chef/Modernize/SevenZipArchiveResource
    - Chef/Modernize/WindowsRegistryUAC
    - Chef/Modernize/WindowsZipfileUsage
    - Chef/Modernize/ZipfileResource
    
    Chef/Deprecations/LogResourceNotifications will need to be ratcheted in.
    
    Differential Revision: D47613067
    
    fbshipit-source-id: c7c7ca4bff79c2862a1dd1e8a4f8859f3ee989f0
    dafyddcrosby authored and facebook-github-bot committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    dd101d3 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. re-enable autocorrection on Lint/AmbiguousRegexpLiteral

    Summary:
    The open-source RuboCop version pin is now greater than 1.19
    
    Differential Revision: D47802717
    
    fbshipit-source-id: 16bc3e92c95bce46e4d87dd6c5740b57ab2cbf1f
    dafyddcrosby authored and facebook-github-bot committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    5cd7894 View commit details
    Browse the repository at this point in the history
  2. fix core cookbooks

    Summary:
    Doing proactive cosmetic cleanup before doing work to clean up missing/unused dependencies.
    
    Differential Revision: D47775954
    
    fbshipit-source-id: de9d0d46601ac74ab700b5480b1b3ddccd6c0607
    dafyddcrosby authored and facebook-github-bot committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    52bcad1 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2023

  1. CPU perf improvements via avoiding read-write loops

    Summary:
    This loop triggers a DeepMergeCache flap. Moving the globals outside
    the loop fixes the flap, and uses a single node.default write for the block
    
    Differential Revision: D47308032
    
    fbshipit-source-id: 86a13dbc408859021e6466daecfd3fc6af3b9871
    dafyddcrosby authored and facebook-github-bot committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    aad54d8 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. Turn off CommentSentenceSpacing for good

    Summary:
    Too noisy, and doesn't really serve a functional purpose (ie AST
    mutation).
    
    Differential Revision: D47836299
    
    fbshipit-source-id: d92de51a22a4949491b1860614c91ff7f0f14d4f
    dafyddcrosby authored and facebook-github-bot committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    08797d5 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2023

  1. fb_swap: when a label exists on a swap device, use that for the mount…

    … device
    
    Summary:
    
    We prefer to use labels rather than devices, because device numbers can be reordered
    after device changes / kernel changes.  If there is a swap device, and it has a label,
    use that.
    
    Differential Revision: D47889869
    
    fbshipit-source-id: 1ac6ad7d8812db96262a61d53e6a061076dd86c0
    joshuamiller01 authored and facebook-github-bot committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    56404e9 View commit details
    Browse the repository at this point in the history
  2. fb_swap: prefer label as mount device for swap 1% -> 2%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D47948323
    
    fbshipit-source-id: 5c139eb1f4c6eae45a1debe907eb08ca14774519
    joshuamiller01 authored and facebook-github-bot committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    0b31992 View commit details
    Browse the repository at this point in the history
  3. fb_swap: prefer label as mount device for swap 2% -> 5%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D47948322
    
    fbshipit-source-id: d1c562314da0b908eb5603e2997e7793409f23da
    joshuamiller01 authored and facebook-github-bot committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    0cba50c View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2023

  1. fb_swap: prefer label as mount device for swap 5% -> 15%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D47948321
    
    fbshipit-source-id: 8c6ecf7ce5a95be24058c66ddfb5e2952c31fd0a
    joshuamiller01 authored and facebook-github-bot committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    4120802 View commit details
    Browse the repository at this point in the history
  2. fb_swap: prefer label as mount device for swap 15% -> 25%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D47948320
    
    fbshipit-source-id: 9b7de3c71e7fdc184f701b8f4283e9a063dc6489
    joshuamiller01 authored and facebook-github-bot committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    69c8c45 View commit details
    Browse the repository at this point in the history
  3. fb_swap: prefer label as mount device for swap 25% -> 40%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D47948318
    
    fbshipit-source-id: f3c2257cf0ad61fc57e3061730a1a0bda65ad29f
    joshuamiller01 authored and facebook-github-bot committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    a96480e View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. fb_swap: prefer label as mount device for swap 40% -> 60%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D47948319
    
    fbshipit-source-id: d1e947046789f8c75979b9a73207bf474990fda5
    joshuamiller01 authored and facebook-github-bot committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    aa588fa View commit details
    Browse the repository at this point in the history
  2. fb_networkd: add API to trigger notifications after networkd changes

    Summary:
    There are scenarios where we need to take some action after a networkd change
    has been made.  This builds this API into fb_networkd, such that the set of resources and actions
    to run via notifications can be set via a node API.
    
    Differential Revision: D47993625
    
    fbshipit-source-id: 1f208b18016a9b82ac44078856ae693932fe0650
    joshuamiller01 authored and facebook-github-bot committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    05c32f8 View commit details
    Browse the repository at this point in the history
  3. fb_swap: prefer label as mount device for swap 60% -> 80%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D47948316
    
    fbshipit-source-id: 25a3216302b4cb51c46c1802c4b44a7145c7a522
    joshuamiller01 authored and facebook-github-bot committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    f03ac7d View commit details
    Browse the repository at this point in the history
  4. fb_swap: prefer label as mount device for swap 80% -> 100%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D47948317
    
    fbshipit-source-id: dd8dc273faf11840321f47e6afd0416e13ad5be4
    joshuamiller01 authored and facebook-github-bot committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    1099ab9 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2023

  1. Explicitly disable some upstream cops

    Summary:
    These are either non-AST mutating or otherwise make suggestions that
    don't make sense to our envs.
    
    Differential Revision: D48081695
    
    fbshipit-source-id: caab0af6d88bfdbf9f9fc38904223645a64904d6
    dafyddcrosby authored and facebook-github-bot committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    e65eeed View commit details
    Browse the repository at this point in the history
  2. Ratchet in more upstream lints

    Summary:
    Now that we're requiring a recent Cookstyle release in the OSS repo, there's a bunch of new lints we can turn on.
    
    ```
    Chef/Correctness/InvalidCookbookName
    Chef/Correctness/MetadataMalformedDepends
    Chef/Correctness/MetadataMissingVersion
    Chef/Correctness/PowershellFileExists
    Chef/Deprecations/ChefSugarHelpers
    Chef/Deprecations/DependsOnChefNginxCookbook
    Chef/Deprecations/DependsOnChefReportingCookbook
    Chef/Deprecations/DependsOnOmnibusUpdaterCookbook
    Chef/Deprecations/DeprecatedSudoActions
    Chef/Deprecations/FoodcriticFile
    Chef/Deprecations/HWRPWithoutUnifiedTrue
    Chef/Deprecations/PolicyfileCommunitySource
    Chef/Modernize/DeclareActionClass
    Chef/Modernize/DependsOnChefVaultCookbook
    Chef/Modernize/DependsOnChocolateyCookbooks
    Chef/Modernize/DependsOnKernelModuleCookbook
    Chef/Modernize/DependsOnLocaleCookbook
    Chef/Modernize/DependsOnOpensslCookbook
    Chef/Modernize/DependsOnTimezoneLwrpCookbook
    Chef/Modernize/DependsOnWindowsFirewallCookbook
    Chef/Modernize/UnnecessaryDependsChef15
    Chef/Modernize/UseChefLanguageEnvHelpers
    Chef/Modernize/UseChefLanguageSystemdHelper
    Chef/Security/SshPrivateKey
    ```
    
    Differential Revision: D48082338
    
    fbshipit-source-id: 6903365fdea3b3c303268dec19e032220278cd11
    dafyddcrosby authored and facebook-github-bot committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    236ab71 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2023

  1. Disable lint FP

    Summary:
    
    Differential Revision: D48331038
    
    fbshipit-source-id: 17ac13d93737a885188e432ec89349b5ad42f2f6
    dafyddcrosby authored and facebook-github-bot committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    f869674 View commit details
    Browse the repository at this point in the history
  2. Explicitly set pre-Chef 18 behaviour

    Summary:
    Chef 18 defaults `unified_mode` to `true`, setting explicitly to false
    so that they can be ratcheted to true as they've been audited. This is the
    start of addressing the open-source issue
    facebook#178
    
    - https://docs.chef.io/release_notes_client/#18.0.155-unified-mode-in-custom-resources
    - https://docs.chef.io/unified_mode/
    
    Differential Revision: D48282167
    
    fbshipit-source-id: cd746aeeae2e2cf58abb806cc587d64d1250091a
    dafyddcrosby authored and facebook-github-bot committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    56b5304 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. Actions versions bumped to latest (facebook#227)

    Summary: Pull Request resolved: facebook#227
    
    Differential Revision: D48485699
    
    fbshipit-source-id: c457726e503caba0e30c398f0b6682e91f535b13
    dafyddcrosby authored and facebook-github-bot committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    4c557e9 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2023

  1. fb_smokeping: fix debian packages list (facebook#219)

    Summary:
    Metadata claims it supports Debian and Ubuntu but this was breaking tests because Debian packages weren't provided
    
    Pull Request resolved: facebook#219
    
    Test Plan: Debian Test Kitchen CI no longer failing on fb_smokeping https://github.com/facebook/chef-cookbooks/actions/runs/5930863707/job/16081523013?pr=219
    
    Differential Revision: D44802567
    
    fbshipit-source-id: 4b8a032b747e63a7e95985114c7e3610cbf4033a
    bwann authored and facebook-github-bot committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    25521f2 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2023

  1. Update CI to Chef 16, drop Ruby 2.5/2.6 support (facebook#229)

    Summary:
    The end result of this is working rubocop/chefspec tests (which have been broken for a while now, so I'm happy to be seeing green). Test Kitchen fixes are out of scope for this one, since there's a bunch more work in that area.
    
    Pull Request resolved: facebook#229
    
    Differential Revision: D48526808
    
    fbshipit-source-id: 59dca361538e863adcd8bd7bea23269abb164777
    dafyddcrosby authored and facebook-github-bot committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    f034ac9 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. bump gems to 3.11 (facebook#228)

    Summary: Pull Request resolved: facebook#228
    
    Differential Revision: D48697284
    
    fbshipit-source-id: 0570795f48b31ef81a7af42f93dbbece01dcfc18
    dafyddcrosby authored and facebook-github-bot committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    f3af011 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2023

  1. Enable basic macOS 14 Sonoma support

    Summary:
    
    The diff adds new default Xcode CLI tools package which is compatible with Sonoma
    Also the diff adds a function to check if node is macOS 14
    
    Followed the guide here https://www.internalfb.com/intern/wiki/PE_macOS/Internal/MacOS_upgrade_rollout_Runbook/
    
    Differential Revision: D48828827
    
    fbshipit-source-id: 7c7ff8cb0b8396d4192831fe5b153b189edb4e33
    Vlad Skvortsov authored and facebook-github-bot committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    4e01666 View commit details
    Browse the repository at this point in the history
  2. fixes for antlir2

    Summary:
    
    antlir2 builds never have a booted systemd as pid1, so any dbus interactions will fail
    
    This diff no-ops:
    - `daemon-reload`
    - `daemon-reexec`
    
    and branches with `--root=/` for:
    - `set-default`
    
    Differential Revision: D48618221
    
    fbshipit-source-id: 4cecc50040bcbae7325063bdca7e1c9fffd07868
    vmagro authored and facebook-github-bot committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    6baf374 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2023

  1. Back out "fixes for antlir2"

    Summary:
    This breaks opensource customers.
    
    Fixes: facebook#230
    
    Original commit changeset: 4cecc50040bc
    
    Original Phabricator Diff: D48618221
    
    Differential Revision: D48906694
    
    fbshipit-source-id: ec2e443ccb22a044507c467254b8a4c48cdabf38
    davide125 authored and facebook-github-bot committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    c746304 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2023

  1. Chef Storage API: fix /dev/sdaa bug

    Summary:
    
    The current `.existing_partitions` uses a simple `starts_with` but there is a corner case: when /dev/sda is queried, the partitions returned include partitions under /dev/sdaa.
    
    This bug affects drive hotswap because when /dev/sda is replaced, Chef Storage API tries to mark all /dev/sda* partitions as failed. That includes /dev/sdaa* partitions, which are in use - and Chef fails. Example: https://www.internalfb.com/intern/provisioning/asset_details/3533538530193558
    
    Fix is to change implementation to regex that checks for numbers after device name.
    
    Differential Revision: D49239939
    
    fbshipit-source-id: 55b6a664ed135114c6f0246692126afe06efafe7
    maxxwizard authored and facebook-github-bot committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    4e5669c View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2023

  1. Update README.md (facebook#231)

    Summary:
    When checking a field, we downcase the subcommand.
    
    Pull Request resolved: facebook#231
    
    Differential Revision: D49431911
    
    fbshipit-source-id: 5d9b3883e0fc5ac1b05741fce1348b66ade37964
    chantra authored and facebook-github-bot committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    e6320da View commit details
    Browse the repository at this point in the history
  2. Combine Cookstyle and Rubocop runs

    Summary:
    There's a speed benefit to combining the runs, both in only crawling
    the files once, and reducing linter whack-a-mole.
    
    Differential Revision: D45196190
    
    fbshipit-source-id: 99fc2e3c71b5a190a651ce7738b475142df6a51d
    dafyddcrosby authored and facebook-github-bot committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    ec34be9 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2023

  1. manage /etc/stunnel in chef

    Summary:
    
    antlir2 image builds don't run systemd services which exposed this deficiency.
    
    Generally though, if Chef is being used to manage files in a directory, it
    should also ensure that that directory exists, otherwise there can be fun race
    conditions :)
    
    Differential Revision: D49016526
    
    fbshipit-source-id: 5a130e2bf37d5a772116605b1f2d8136f783d1b4
    vmagro authored and facebook-github-bot committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    8840563 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2023

  1. Add :allow_clobber resource property to fb_powershell_module

    Summary:
    
    Sometimes modules can have the same command names. When installing a new module, PowerShell will halt the installation if a command in a new module is found in a previously installed module. `-AllowClobber` bypasses this check.
    
    Differential Revision: D49525952
    
    fbshipit-source-id: f6f7e4e262bba7e553990210c9a4396f6a1de915
    Austin Proctor authored and facebook-github-bot committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    9974b8f View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. WuFB - Adding Windows 11 Support, and => 22H2 to CPE

    Summary:
    
    This adds Windows 11 management support to WuFB that currently only handles Windows 10.  Since we aren't updating Windows 10 devices to Windows 11 we needed to add support for **Product Version** 10 __**and**__ 11 using a node detection.   This way both version of Windows can get their feature/build updates but stay on their major release.
    
    With this, I'm pushing 22H2 to __CPE__ first to validate its function and successful upgrades, and later Trusted Testers.
    
    **Upgrade impact is minimal**; both Windows 10 and 11 Build 21H1 went to 22H2 with a reboot that takes __less than 1 minute__ to apply.
    
    Differential Revision: D49306013
    
    fbshipit-source-id: c80b450581cf86371f21517467ce4fed263e6b62
    Jacob Jedlicka authored and facebook-github-bot committed Oct 2, 2023
    Configuration menu
    Copy the full SHA
    9cfb6f3 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. Clear out removal of fb_tmpreaper from /usr/bin/

    Summary:
    
    Since the config to `fb_tmpreaper` is now in `/usr/local/bin`, its now safe to remove the part where it used to be in `/usr/bin`.
    
    Differential Revision: D49381715
    
    fbshipit-source-id: 2e4155974de4aba76dec516f6979a1a1fcd857db
    mar-jac authored and facebook-github-bot committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    6d45c58 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. Memoize version casting + Windows Server/Desktop Distinction

    Summary:
    
    1. Several methods cast strings into version and it's very likely this is happening multiple times unnecessarily.
    2. Several Windows assume versions would be unique to server/desktop and it's a bad assumption. The methods have been updated to confirm this.
    
    Differential Revision: D49522597
    
    fbshipit-source-id: 9eab128fbdbb5aefec41462c996b202d3fcf034f
    Gilbert Sanchez authored and facebook-github-bot committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    14db503 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2023

  1. fb_powershell: Add feature to turn of pwsh telemtry

    Summary:
    
    Pwsh collects some telemetry on start up. This allows us to turn it off. If attribute is unset, it does nothing. Setting true or false will enable/disable.
    
    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_telemetry?view=powershell-7.3
    
    Differential Revision: D50018656
    
    fbshipit-source-id: 717106af63fa781e99a0f767356b85011e492128
    Gilbert Sanchez authored and facebook-github-bot committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    d8d4c60 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2023

  1. if we find multiple swap partitions, tell us what they were

    Summary:
    I got this weird error on my devserver, but couldn't figure out what chef thought because according to /proc/swaps I don't have another swap device mounted. Turns out its some ghost device from qemu testing...
    
    Anyway I thought I would make this less awful to debug for the next poor soul who encounters this.
    
    Example output:
    {P854013843, lines=15, highlight=14}
    
    Differential Revision: D50280342
    
    fbshipit-source-id: f9965315f18fa84359b4c5bcf02f811ed80a91b6
    Andrew Ryan authored and facebook-github-bot committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    1032b11 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. Adopt fluent-bit name by default instead of td-agent-bit

    Summary:
    
    FluentBit changed the name of its binaries from `td-agent-bit` to `fluent-bit` starting 1.9 versions. Therefore we needed to have logic that supported both names for a period of a time. It has been over 6 months since this operation and we are moving to default to `fluent-bit` for name.
    
    The logic to support `td-agent-bit` name will continue to be supported for the coming 6 months, until April 15th, 2024.
    
    Differential Revision: D50092325
    
    fbshipit-source-id: 3d9c5a944728971a18a15923e831b1b1a2ca8fe4
    Leoswaldo Macias Mancilla authored and facebook-github-bot committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    8d6c90f View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. fb_systemd: Don't call systemd-sysusers on older versions of systemd

    Summary:
    
    D36004124 updated the `fb_systemd` recipe to call `systemd-sysusers`
    to create a missing user. However, the command uses the `--inline` flag that
    was only added in systemd 238. D36528947 was sent to update the minimum version
    to 215 (which is when the `system-sysusers` command was added). However, the
    `--inline` flag was still missing from that version. Thanks to gmambro for
    spotting that!
    
    From the systemd changelog: https://github.com/systemd/systemd/blob/main/NEWS
    
    ```
    CHANGES WITH 238:
    
    <snip>
    
     * systemd-sysusers gained a mode where the configuration to execute is
              specified on the command line, but this configuration is not executed
              directly, but instead it is merged with the configuration on disk,
              and the result is executed. This is useful for package installation
              scripts which want to create the user before installing any files on
              disk (in case some of those files are owned by that user), while
              still allowing local admin overrides.
    ```
    
    The missing arg caused S372980 as the lego-linux tier runs Ubuntu VMs with
    systemd 237. There's some more context in my post in the systemd group:
    https://fb.workplace.com/groups/systemd.and.friends/posts/3509161785966261.
    
    I think that it might be possible to remove this block of code entirely,
    however I want to make the smallest change possible to fix lego-linux. Those
    supporting systemd will have a better idea of whether the code can be removed.
    
    Differential Revision: D50494316
    
    fbshipit-source-id: db7bcff80672673aac48be372d2434b768c99d96
    Harvey Hunt authored and facebook-github-bot committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    337867f View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. fb_networkd: fix boot service ordering between udev, chef, network-on…

    …line.target 1% -> 11%
    
    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D50602111
    
    fbshipit-source-id: 98b7d7f91d3e548ed28df49ada98d830ca2c14af
    joshuamiller01 authored and facebook-github-bot committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    453a3d1 View commit details
    Browse the repository at this point in the history
  2. fb_networkd: fix boot service ordering to avoid races between udev, c…

    …hef, and network-online.target
    
    Summary:
    
    There are several problems during boot right now wrt networkd, udev, chef, and the network-online.target
    - networkd starts while the udev rules are running, and may try to apply rules that might be incorrect
    - the udev rules are `networkctl reconfigure`ing interfaces at the same time networkd is trying to configure them
    - chef-boot runs while the udev rules are running, and may observe interim interfaces or interfaces with the wrong MAC
    - network-online.target doesn't actually block until the network is online; the target is reached before any interface is configured
      - this means that chef is also concurrently running while networkd is configuring the interfaces, basically creating the same problem as with the udev rules
    
    The only reasonable way to tackle this is to make things execute in a proper order and end the races.
    This does the following:
    - make the udev rules not call `reconfigure`; these rules should only run on boot, so the interfaces should subsequently be configured by networkd
    - make networkd wait for udev rules to 'settle', so that before networkd runs the interfaces have been renamed
    - fix network-online.target to actually work - since chef already waits for network-online.target, if it actually works
    there shouldn't be a problem
    
    The end result is that the udev rules run, then when they're done, systemd-networkd starts up, and chef only runs once network-online.target is reached
    
    Note: network-online.target is not "all interfaces are up and fully configured".  See https://www.freedesktop.org/software/systemd/man/latest/systemd-networkd-wait-online.service.html
    This _also_ causes problems, but ... I'm not going to try to address that here.
    
    Differential Revision: D50518948
    
    fbshipit-source-id: 8daabb31555ae019b6f32867bcae4a2bc9ce8967
    joshuamiller01 authored and facebook-github-bot committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    5c596f7 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2023

  1. fb_networkd: fix boot service ordering between udev, chef, network-on…

    …line.target 11% -> 26%
    
    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D50602114
    
    fbshipit-source-id: 334c3f54b9578c75b69c098162f0ccc274110975
    joshuamiller01 authored and facebook-github-bot committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    4ce0ced View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e830c9c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a879037 View commit details
    Browse the repository at this point in the history
  4. fb_networkd: fix boot service ordering between udev, chef, network-on…

    …line.target 26% -> 51%
    
    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D50602112
    
    fbshipit-source-id: 8085757a1a01757f31747f426f9b9733957ff4f8
    joshuamiller01 authored and facebook-github-bot committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    626978b View commit details
    Browse the repository at this point in the history
  5. fb_networkd: fix boot service ordering between udev, chef, network-on…

    …line.target 51% -> 76%
    
    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D50602110
    
    fbshipit-source-id: 615de3da9a62a1704458220caca04f78bcfe0ebf
    joshuamiller01 authored and facebook-github-bot committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    0b6e6d6 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. fb_networkd: fix boot service ordering between udev, chef, network-on…

    …line.target 76% -> 100%
    
    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D50602109
    
    fbshipit-source-id: 4ae654f0785d8cdd615bc7e7ee60b8bfb0af1cc7
    joshuamiller01 authored and facebook-github-bot committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    912ddbd View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2023

  1. support HyperNode provisioning on T5

    Summary:
    
    as per title. What's in this diff:
    1. Create a new FbJbodHandler that replace the generic JbodHandler for twstorage, which supports formatting HDD by hnadmin.
    2. Install hnadmin on all twstorage hosts.
    3. Pairing JMC and Offline metadata with HDD by physical slot number. For example, /mnt/hn10 pairs with the HDD in slot 10.
    
    Differential Revision: D50522143
    
    fbshipit-source-id: 6caed96071016ef6d7afcb00ba85eedbf321c268
    Kai-Hsiang Chang authored and facebook-github-bot committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    2ab53bf View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2023

  1. gpsd-clients -> gpsd-minimal-clients

    Summary:
    The package is no longer available.
    
    Differential Revision: D50972912
    
    fbshipit-source-id: 46a2c96f95cdc3e96da3daa1215953ef417f897a
    pmazzini authored and facebook-github-bot committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    dfcd3be View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2023

  1. fb_network_scripts: add ability to configure system wide static defau…

    …lt gateway
    
    Summary:
    
    Add ability to configure system wide static default gateway
    And remove incorrect comment
    
    Differential Revision: D51118754
    
    fbshipit-source-id: 15e533972e90282bb515a4634bf53f208c0bf2f4
    joshuamiller01 authored and facebook-github-bot committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    35fefd3 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2023

  1. Cleanup homebrew from template

    Summary:
    
    As the cleanup for `homebrew` continues, this makes sure we deprecate it from the paths as possible.
    
    This clears out `opt/homebrew/bin` from the path in favor of `opt/facebook/bin`.
    
    Differential Revision: D51203332
    
    fbshipit-source-id: f16d3014dcd4801bff230d148fd97098eff6f521
    mar-jac authored and facebook-github-bot committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    d1b1a92 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2023

  1. fb_systemd: make knob for mgmt of default target

    Summary:
    
    Make knob for mgmt of default target, so that it's possible to opt out as needed
    
    Differential Revision: D51510688
    
    fbshipit-source-id: 7c1a0f44975b4aa49ebba0ff5d81700297412e87
    joshuamiller01 authored and facebook-github-bot committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    83c704a View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2023

  1. Add proper support for USD on Artemis

    Summary:
    
    Removed the actual bind mounts from this diff as boyuni's changes should be live by now.
    Added a bunch of changes to make USD support better. Not perfect yet as the initial setup is still a bit problematic (the initial provisioning doesn't have the SMC tiers required to know that this should be using USD, therefore Tupperware bundle generation generates an `fbaccel` config, which breaks as soon as USD is activated):
    * Added `fb-mtiautil-cli` as that's required to administer the card
    * Added `fb-platform010-artemis-compiler` as that's required in the container but that RPM installs in the runtime and one cannot install that in the container. Long term this will be bundled into the binary
    * Install `fb-asic-bootd` as that's USD
    * Move the `asic_bootd` from the RPM into chef, 'cause babar prefers this, and it makes it easier to control start / stop / notifications upon changes. It's also easier to modify anything as one doesn't have to build, push and update the RPM
    * Added a bunch of comments that `fb_grub` doesn't do anything on `twshared`, but all those changes have already been implemented where they are needed using host profiles
    * Added the possibility to use two SMC tiers to control the deployment. As mentioned above, this isn't perfect, but we don't really have a better solution yet
    * Taught Tupperware how to reset the card(s) before starting a container when in USD
    * Rename `twshared_inference` to `twshared_t17` as we have inference on T16, TNG, even T20 and we always had it on T1 so this was misleading
    * Added `asic_bootd` as an allowed WDB on T17
    * Ensured the directories that Tupperware bindmounts exit. No longer bind-mount them ourselves as boyuni's changes to the agent should take care of that part
    ** To do that part, changed the systemd tmpclean recipe to actually run as soon as the file is modified, so the folders get created right before Tupperware tries to use them by validating the config.
    
    Differential Revision: D51473619
    
    fbshipit-source-id: 1fd749117df0a5f98f3180ec4b408999bceeb1f1
    Olivier Raginel authored and facebook-github-bot committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    3b9741a View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2023

  1. clean ntpchkng usages in opsfiles

    Summary: Remove most of the outdated references
    
    Differential Revision: D52121246
    
    fbshipit-source-id: d41b74228d8b865167a2d22010858258feffb751
    leoleovich authored and facebook-github-bot committed Dec 13, 2023
    Configuration menu
    Copy the full SHA
    30bb9ea View commit details
    Browse the repository at this point in the history
  2. Move to overcommit.slice so it can see all the CPUs

    Summary:
    1] Change to fb_timer (for hm_data_plane)
    
    The API exposes a way to set custom properties, but also manually sets slice. We can override slice by specifying it twice, but it's ugly -- the resulting file ends up looking like
    ```
    Slice=system-timers-trickle_test_runner.slice
    Slice=overcommit-timers-trickle_test_runner.slice
    ```
    This makes it not set the first Slice= value if Slice is part of the overrides.
    
    Differential Revision: D52097721
    
    fbshipit-source-id: bf6440cd97255e884edd89710586a1f9339ebf5e
    Nicolas Hurman authored and facebook-github-bot committed Dec 13, 2023
    Configuration menu
    Copy the full SHA
    34d76b5 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2023

  1. Use dnf modularity only when needed

    Differential Revision: D52218129
    
    fbshipit-source-id: 7207ae4f9c8c2afd8ba27544b52dbae78fe83dc4
    Antony Thomas authored and facebook-github-bot committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    350728c View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2023

  1. fb_powershell_module: Use PowerShell exec for improved performance

    Differential Revision: D50035571
    
    fbshipit-source-id: 3c98750e7ce90b676b7d9102b050ff52b66ad0b2
    Gilbert Sanchez authored and facebook-github-bot committed Dec 21, 2023
    Configuration menu
    Copy the full SHA
    0f6aab9 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2024

  1. Report for cookbooks without recipes

    Summary: Cookbooks that don't evaluate Ruby outside of recipes presumably are easier to remove from other cookbook dependencies, since without an include_recipe call to a recipe they will be unlikely to have any purpose (though this is not a substitute for checking for other usage).
    
    Differential Revision: D52215844
    
    fbshipit-source-id: 876dacc0e686168fdda72f2064949e25ce61c998
    dafyddcrosby authored and facebook-github-bot committed Jan 2, 2024
    Configuration menu
    Copy the full SHA
    e17c840 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2024

  1. Enable Lint/Syntax

    Differential Revision: D52517969
    
    fbshipit-source-id: 60b1f33229d2cab743b2c43fd956fe6fdb63c25f
    dafyddcrosby authored and facebook-github-bot committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    0dec9d0 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2024

  1. Add OEL 9 support to helpers, fbit_yum, fbit_repo

    Differential Revision: D52529389
    
    fbshipit-source-id: 1c4f67fab80a30cf21519fe7ce98023ded30ca16
    yee-unit authored and facebook-github-bot committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    fc840bb View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2024

  1. Update node_methods for rpm_version and fb_slowroll for OEL9

    Differential Revision: D52569881
    
    fbshipit-source-id: 1d190e5542c5ad74bc73d1d146a353b5655a0b42
    yee-unit authored and facebook-github-bot committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    bd500e3 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2024

  1. Cleanup uses of FB031 (& 19,21,22,23,24,26)

    Differential Revision: D52530525
    
    fbshipit-source-id: c80ff5b80c2c060cd9be91540fb482536b16cddb
    Olivier Raginel authored and facebook-github-bot committed Jan 13, 2024
    Configuration menu
    Copy the full SHA
    363bf82 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. Write datestamped profiles

    Differential Revision: D52745862
    
    fbshipit-source-id: a7888ad12b457809f225500d09de53b9e84f309c
    dafyddcrosby authored and facebook-github-bot committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    613e802 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2024

  1. Mark ROU extra repos as antlir_extra_repo

    Differential Revision: D53095540
    
    fbshipit-source-id: 8912a8fa928c3a4f942aa12b8b2aba36275cc917
    Serge Dubrouski authored and facebook-github-bot committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    2c9eab4 View commit details
    Browse the repository at this point in the history
  2. Clean up manually a few of the rubocop / foodcritic exceptions

    Summary: They don't make sense otherwise and I don't want to bundle them into the next diff so the next diff is fully automated and easier to review`
    
    Differential Revision: D53077187
    
    fbshipit-source-id: d2928ddf9032707fce7b857db0ea46b739c25c13
    Olivier Raginel authored and facebook-github-bot committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    6567b9a View commit details
    Browse the repository at this point in the history
  3. Apply the linter to remove all the foodcritic exemption for the ones …

    …migrated to cookstyle: prod
    
    Differential Revision: D53077178
    
    fbshipit-source-id: e3759650d0df0a9a64cc278ac065de41a1ae1db2
    Olivier Raginel authored and facebook-github-bot committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    2db57f7 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2024

  1. Apply the linter to remove all the foodcritic exemption for the ones …

    …migrated to cookstyle: rest of itchef
    
    Summary: Apply the second diff of the stack onto the rest of `itchef` codebase
    
    Differential Revision: D53077186
    
    fbshipit-source-id: 3f6c3dc338d65dd622b163a46330a47bc7293575
    Olivier Raginel authored and facebook-github-bot committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    916de38 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2024

  1. remove remaining core foodcritic annotations

    Differential Revision: D53142318
    
    fbshipit-source-id: 93002dfde1f1c440212a6b453ac4e1552e4e5570
    dafyddcrosby authored and facebook-github-bot committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    564dd0f View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2024

  1. Ratchet in Chef/Modernize/FoodcriticComments

    Summary:
    Now that the awful work of tearing out the Foodcritic annotations is
    done, enable the upstream cop so we don't need to deal with
    
    Differential Revision: D53137508
    
    fbshipit-source-id: c1ed3195cd6500c90679f983177cede83a3bb791
    dafyddcrosby authored and facebook-github-bot committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    65ec06e View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2024

  1. fb_apt: Add ability to log output of apt-get update (facebook#232)

    Test Plan:
    Imported from GitHub, without a `Test Plan:` line.
    Tested with a basic regression test on a twshared host, though this cookbook
    isn't used internally and this should be a no-op
    
    Differential Revision: D52880450
    
    fbshipit-source-id: 1c4a1cc20837cb0cafd95f432f73639fce3a4eb6
    adsr authored and facebook-github-bot committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    9218cc5 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2024

  1. fb_apt: correct multiline command proc for log_path to work

    Differential Revision: D53741083
    
    fbshipit-source-id: f121b988d85c041f9f4d120fd5d5e16236ef6cb9
    joshuamiller01 authored and facebook-github-bot committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    ceca0ed View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2024

  1. fb_iproute: ensure directory exists

    Summary: On c10s and ELN iproute doesn't create this directory anymore, so we need to ensure it actually exists.
    
    Differential Revision: D54077468
    
    fbshipit-source-id: bca370ff40d7d3c7380be72c452866e0fa8f9bf8
    davide125 authored and facebook-github-bot committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    4306687 View commit details
    Browse the repository at this point in the history
  2. fb_helpers: add helpers for new distro versions

    Summary: Cover the latest Fedora, CentOS and RHEL
    
    Differential Revision: D54079561
    
    fbshipit-source-id: 7d2c34273d8b3256f38d4c76c9dc42c617ad21ba
    davide125 authored and facebook-github-bot committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    3e25d03 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2024

  1. fb_postfix: default to lmdb maps for el10 and later (facebook#235)

    Summary:
    Pull Request resolved: facebook#235
    
    Upstream dropped support for libdb in
    https://src.fedoraproject.org/rpms/postfix/c/6a2621e4d73d59337dc64ba45922132286b841a1
    so we need to use lmdb in RHEL 10 and later
    
    Differential Revision: D54077466
    
    fbshipit-source-id: 7045a9762ce0390d485c20f9ff2818ccf41fedb5
    davide125 authored and facebook-github-bot committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    5433642 View commit details
    Browse the repository at this point in the history
  2. fb_logrotate: update rsyslog-logrotate removal logic for new versions

    Summary:
    rsyslog-logrotate was introduced in f36
    (https://bugzilla.redhat.com/show_bug.cgi?id=1992153) and backported to c9s
    (https://bugzilla.redhat.com/show_bug.cgi?id=1992155) but it has since been
    subsumed again in https://bugzilla.redhat.com/show_bug.cgi?id=2242243 for f40
    (which will carry over in c10s).
    
    Differential Revision: D54079562
    
    fbshipit-source-id: db20b41625ebf0506f2dcad9d5305c4ae7dd4a62
    davide125 authored and facebook-github-bot committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    e6d7e35 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2024

  1. fb_systemd: add basic management for homed

    Summary:
    This isn't used by any distribution yet, so keep it disabled by
    default.
    
    Differential Revision: D54310828
    
    fbshipit-source-id: f22bdffa061f5e8a5b8c8d1ffc29ae27582379c7
    davide125 authored and facebook-github-bot committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    6e97aca View commit details
    Browse the repository at this point in the history
  2. fb_networkd: setup a way to stop and start services around a networkd…

    … change
    
    Differential Revision: D54094219
    
    fbshipit-source-id: 1f13316e4ba957309552a079a946f0da8bfbe046
    joshuamiller01 authored and facebook-github-bot committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    e7b446b View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

  1. fb_postfix: specify map type when rebuilding aliases too

    Differential Revision: D54362650
    
    fbshipit-source-id: 7b0cc6b54fd9fe005e62f5f9b3a3d08f4e2b5612
    davide125 authored and facebook-github-bot committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    344da65 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. Shard out disabling requires_enable API (1%)

    Differential Revision: D54571787
    
    fbshipit-source-id: cac7d664703cd216eaa84d0c276edf6c9f99082a
    cooperlees authored and facebook-github-bot committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    7efa843 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. Shard out disabling requires_enable API (2%)

    Differential Revision: D54591689
    
    fbshipit-source-id: 8b60a9d08afd31af58a5516ab7e4c92e63b463a6
    cooperlees authored and facebook-github-bot committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    f6816d7 View commit details
    Browse the repository at this point in the history
  2. Shard out disabling requires_enable API (5%)

    Differential Revision: D54606246
    
    fbshipit-source-id: 5cf0aef2a3e193999f4d72bfb5d59f5a1e05a48b
    cooperlees authored and facebook-github-bot committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    272061b View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2024

  1. Shard out disabling requires_enable API (10%)

    Differential Revision: D54608085
    
    fbshipit-source-id: 4c09d4f44770e55a3bbf1ffd45ff494c4c4371a6
    cooperlees authored and facebook-github-bot committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    96dc889 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. Shard out disabling requires_enable API (25%)

    Differential Revision: D54608083
    
    fbshipit-source-id: 9fd6ae63183a5ff1b0c5673c2f5a5a35bc9b95e5
    cooperlees authored and facebook-github-bot committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    c788f75 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2024

  1. Shard out disabling requires_enable API (50%)

    Differential Revision: D54608082
    
    fbshipit-source-id: eff0e6439c05159af2f263ff8107838df6f3f53e
    cooperlees authored and facebook-github-bot committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    a00f578 View commit details
    Browse the repository at this point in the history
  2. Configure DNF on Arista EOS 4.31+

    Differential Revision: D54747272
    
    fbshipit-source-id: fb45b067dbd6f408ed50d2921a2738713079bee9
    fabianishere authored and facebook-github-bot committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    e50ee35 View commit details
    Browse the repository at this point in the history
  3. Shard out disabling requires_enable API (75%)

    Differential Revision: D54608086
    
    fbshipit-source-id: 64c60fdfdfb3f922b7f2923cd2643aeb71921883
    cooperlees authored and facebook-github-bot committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    8c586c6 View commit details
    Browse the repository at this point in the history
  4. disable and remove requires_enable API

    Differential Revision: D54608084
    
    fbshipit-source-id: cc5f9b1131a9e33f7037b089d58d71c08a7ef4d6
    cooperlees authored and facebook-github-bot committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    7a8b222 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. remove btrfs leaf size

    Differential Revision: D55038841
    
    fbshipit-source-id: 6ca52c0576fab0d71aebf110a67d9c5473e759bd
    Sweet Tea Dorminy authored and facebook-github-bot committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    76109bb View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. Remove some more fusionio bits

    Differential Revision: D54771183
    
    fbshipit-source-id: 81a20817f2a708ba9e53174ab42c949166097f81
    Dave Jones authored and facebook-github-bot committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    5522a55 View commit details
    Browse the repository at this point in the history
  2. Stop trying to upgrade dnf on every chef run

    Differential Revision: D55095284
    
    fbshipit-source-id: 38ec6a43bbeac94aa132c8d22651dab35c8a3be3
    epilatow authored and facebook-github-bot committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    5960b3d View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. Fix fb_systemd on hosts without networkd (facebook#236)

    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
    jaymzh authored and facebook-github-bot committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    7c455a2 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. Add 'disable_makecache' API

    Differential Revision: D55318525
    
    fbshipit-source-id: 23e2bcb990319bbb7c3c05f97111cd8a2f7fefc0
    cooperlees authored and facebook-github-bot committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    3ee3d06 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2024

  1. memoize root_user/root_group methods

    Summary:
    We don't expect the platform to change mid-run, so memoizing these
    methods to save calls to `#value_for_platform`, which has node attribute reads
    under the hood.
    
    Differential Revision: D55338996
    
    fbshipit-source-id: 7c563a1f5f13c58b35b081b2796143b9d6939cd7
    dafyddcrosby authored and facebook-github-bot committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    2f830f4 View commit details
    Browse the repository at this point in the history
  2. Make the renable optional

    Differential Revision: D55366233
    
    fbshipit-source-id: 450a2f6a8285133f5b55064ef4670bd7dd22af72
    cooperlees authored and facebook-github-bot committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    03ff688 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. fb_grub: support Fedora too for grub-install

    Summary:
    This is needed for ELN but should help if there's any non-EFI fedora
    installs as well
    
    Differential Revision: D55753946
    
    fbshipit-source-id: 066ca67c63d41572b26eaf57f5bcdec69878f25a
    davide125 authored and facebook-github-bot committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    176ef30 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. Clean up mentions of tboot

    Summary:
    Simplify the grub cookbook by removing the now unnecessary tboot related
    stanzas; they haven't been in use since we moved off CentOS 7.
    
    Differential Revision: D55189051
    
    fbshipit-source-id: d866c6811505fd4ed47642e03beff27e69378333
    u1f35c authored and facebook-github-bot committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    a780272 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. Setup slowroll for iptables-legacy

    Differential Revision: D55988297
    
    fbshipit-source-id: e64d9b00c703480d1cbd37c75a8e50fdb3063b0f
    Raymond Colebaugh authored and facebook-github-bot committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    072b1a8 View commit details
    Browse the repository at this point in the history
  2. Exclude fedora from slowroll

    Differential Revision: D56079700
    
    fbshipit-source-id: 78c2449a4e70f0bbaeb5ea3bc6464b4c136181b1
    Raymond Colebaugh authored and facebook-github-bot committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    19ab77f View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. Drop Fauxhai 6 code

    Differential Revision: D56024221
    
    fbshipit-source-id: 775d3b568532ab92013708e29e2e3c181949eff4
    dafyddcrosby authored and facebook-github-bot committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    3e3386a View commit details
    Browse the repository at this point in the history
  2. Remove supermarket_push script (facebook#237)

    Summary:
    I didn't see any of the cookbooks on the supermarket, suspect the script is derelict.
    jaymzh is this still in use on your end?
    
    Pull Request resolved: facebook#237
    
    Differential Revision: D56030336
    
    fbshipit-source-id: 978acfc6ad35c1bfa18535839318e86a352d04bb
    dafyddcrosby authored and facebook-github-bot committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    84ecd11 View commit details
    Browse the repository at this point in the history
  3. Pair HyperNode partitions by partlabel for T5

    Differential Revision: D54864378
    
    fbshipit-source-id: e2bedc899e538d45ab0a998db1e08f1a1ecfbf12
    Kai-Hsiang Chang authored and facebook-github-bot committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    81c1737 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Add profiling hooks

    Summary: This adds the `--profiler` option for running ruby-prof.
    
    Differential Revision: D56162222
    
    fbshipit-source-id: ec7ccdc1641abfef63a3ff980ca6700bf2467ada
    dafyddcrosby authored and facebook-github-bot committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    3dfdb9f View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2024

  1. Back out "'Exclude fedora from slowroll' and 'Setup slowroll for ipta…

    …bles-legacy'"
    
    Summary:
    Original commit changeset: 78c2449a4e70
    
    Original Phabricator Diff: D56079700
    ***
    Back out "[S409410][fb_iptables] "
    
    Original commit changeset: e64d9b00c703
    
    Original Phabricator Diff: D55988297
    
    ***
    This cookbook is open source so we cannot use slowroll here
    
    Differential Revision: D56272737
    
    fbshipit-source-id: bf4a78b3a4cbe7607357a6d25c76f5e911fdf60c
    Raymond Colebaugh authored and facebook-github-bot committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    d81f5ca View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2024

  1. Run NoOwnerGroupRoot on the entire codebase: core

    Summary:
    Just run the previous diff on `core` base to clean everything up
    
    ```
     $ hg show | grep '^[-+] ' | grep -vEe "^- *(owner|group) *'root'\$" -e  '^\+ *(owner|group) *node.root_(user|group)$'
    ```
    So it literally just changes what it's supposed to.
    
    Differential Revision: D56178482
    
    fbshipit-source-id: c1697841b5188450240b02a3750bd281e837bd1f
    Olivier Raginel authored and facebook-github-bot committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    b5406e6 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. fb_networkd/fb_networking_settings: extend support for multiple VLAN 1%

    Summary: When adding multiple VLANs, the network file for the interface was not appending additional VLAN properties because it was not a list. Change to list and add corresponding validation.
    
    Differential Revision: D56334510
    
    fbshipit-source-id: bdaac43f1d47a8ad58bc494ab7978c652ff44ffb
    anitazha authored and facebook-github-bot committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    e01ff12 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. expose is rhel 8.8 helper for later migration

    Summary:
    new function no callsite yet
    ```
    
    Differential Revision: D56587816
    
    fbshipit-source-id: be02c025c394b6245e88c706b7af8bc3515ba60f
    Boa-Lin Lai authored and facebook-github-bot committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    79bb1a3 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. Fix chocolatey.exe detection

    Summary:
    This diff is a part of bigger effort to migrate from engenv chef to prod chef solo.
    
    In the lab environment, there is no Chocolatey present on the machine during the chef bootstrap, and it's important to properly detect the `chocolatey.exe`.
    
    In the recent chef versions (17.4.38) the behavior of the `which()` function changed, and now it's returning `false` instead of `nil`.
    If you look at D36651569, you can see that the return value of `which()` is changing.
    To be on the safe side, I am adding the test that looks for **both** `nil` and `false`
    
    Differential Revision: D56729989
    
    fbshipit-source-id: 35f071a9b2ab131dfa5ac71cff1bd7939d921864
    Jan Korycan authored and facebook-github-bot committed May 3, 2024
    Configuration menu
    Copy the full SHA
    110297b View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. Ensure we rebuild dracut when changing /etc/fstab

    Summary: Dracut gets a copy of `/etc/fstab` to know what disks to mount before changeroot, so we need to make sure that any change (like reconfiguring the mount options) is reflected into dracut's copy
    
    Differential Revision: D57394916
    
    fbshipit-source-id: 04b745c47bb5098d6856ab0780ec2bc11e9fd7ad
    Olivier Raginel authored and facebook-github-bot committed May 15, 2024
    Configuration menu
    Copy the full SHA
    d9c1d01 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

  1. Remove over_provisioning_mapping from fb_storage

    Summary:
    > Removed over_provisioning_mapping from fb_storage cookbook
    
    Differential Revision: D57170934
    
    fbshipit-source-id: 1c91d411dac4c3632065fe390446daea58d6b207
    sjpark0605 committed May 17, 2024
    Configuration menu
    Copy the full SHA
    63c6501 View commit details
    Browse the repository at this point in the history
  2. Fix grammar in README

    Summary: Just fixing grammar in README
    
    Differential Revision: D57492309
    
    fbshipit-source-id: 6b21c4a9218334778b1747b300f552db06af999b
    sjpark0605 authored and facebook-github-bot committed May 17, 2024
    Configuration menu
    Copy the full SHA
    3506390 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Validate given IP addresses - 1%

    Differential Revision: D48831692
    
    fbshipit-source-id: c6d0508915f7f21d8d4ecaf2a7d5af560bd177bd
    joshuamiller01 authored and facebook-github-bot committed May 22, 2024
    Configuration menu
    Copy the full SHA
    61bcc51 View commit details
    Browse the repository at this point in the history
  2. fb_networkd: Validate given IP addresses - 100%

    Differential Revision: D57674868
    
    fbshipit-source-id: d0c82ffbedb9908684f7a7a26916ef773e833a40
    joshuamiller01 authored and facebook-github-bot committed May 22, 2024
    Configuration menu
    Copy the full SHA
    46ccd8a View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. fb_networkd: extend validation logic to allow Address key to be a string

    Differential Revision: D57728699
    
    fbshipit-source-id: d340eb5d677cd9342853d32b6ee4895ca24cb326
    joshuamiller01 authored and facebook-github-bot committed May 23, 2024
    Configuration menu
    Copy the full SHA
    59fa4c0 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. Update checkout GHA to avoid Node16 deprecation warnings (facebook#239)

    Summary:
    This is a very basic PR I know. But it cleans up the deprecation warnings so I thought I'd add it.
    
    Pull Request resolved: facebook#239
    
    Test Plan:
    Imported from GitHub, without a `Test Plan:` line.
    
    Checked https://github.com/facebook/chef-cookbooks/pull/239/checks, deprecation notices are gone
    
    Differential Revision: D57752486
    
    fbshipit-source-id: aa4accc12e6dcbab47e6a1637502eec5f17f508e
    furan917 authored and facebook-github-bot committed May 24, 2024
    Configuration menu
    Copy the full SHA
    1b9ac4b View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. Run NoOwnerGroupRoot on the entire codebase: github

    Summary:
    Just run the previous diff on the rest of the code base to clean everything up. Only github showed something.
    
    ```
     $ hg show | grep '^[-+] ' | grep -vEe "^- *(owner|group) *'root'\$" -e  '^\+ *(owner|group) *node.root_(user|group)$'
    ```
    So it literally just changes what it's supposed to.
    
    Differential Revision: D56219068
    
    fbshipit-source-id: 5084f44b47978ad885ff1a98cda9af7efbde3a56
    Olivier Raginel authored and facebook-github-bot committed May 28, 2024
    Configuration menu
    Copy the full SHA
    a2eb99b View commit details
    Browse the repository at this point in the history
  2. Fix all the uses of node.in_shard?(x) where x is a multiple of 5

    Differential Revision: D49900503
    
    fbshipit-source-id: 6372c56d38d161a8a819fc3d0a0698b8ee423153
    Olivier Raginel authored and facebook-github-bot committed May 28, 2024
    Configuration menu
    Copy the full SHA
    32eaf4b View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2024

  1. Block homed from starting in presets, disable in Chef

    Differential Revision: D58093895
    
    fbshipit-source-id: 1079cfbbff3858c39dba2f496c2c721f23a29d81
    Cedric Van Goethem authored and facebook-github-bot committed Jun 3, 2024
    Configuration menu
    Copy the full SHA
    9e171b3 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2024

  1. Enhance gated template to have content of changes

    Differential Revision: D55665988
    
    fbshipit-source-id: 835ced0078917565168f4ce771f8e9d3df894371
    Olivier Raginel authored and facebook-github-bot committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    26d8182 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Changes to support macOS 15

    Differential Revision: D58749691
    
    fbshipit-source-id: 99a37e1cb13dad77d5cd14e85da4368765f06415
    Travis Graham authored and facebook-github-bot committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    f41af66 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. special partition size handling for FBPN 01-005817, 01-005959

    Summary:
    eag-prod-2 has three different kinds of T16, each with slightly different storage capacities.
    
    This diff makes such that each of the smaller capacity machines will format its disks to have
    partitions passed to the VM that are the same size as the largest machine.
    
    Confirmed we currently have only one of these machines for each FBPN. Other anvils
    should not be impacted.
    
    Had to add "s" to the allowed suffixes that can be passed for partition start/end in fb_storage
    so that we can be precise in partition sizing.
    
    Differential Revision: D58845625
    
    fbshipit-source-id: a63b8fb28170053845e66423d27e15d89cd40bec
    Brandon Adams authored and facebook-github-bot committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    1eba098 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. adding usage of DNF in Arista 4.30 and higher

    Differential Revision: D59270448
    
    fbshipit-source-id: 4ae81e326262083fded5f97fa888c50d4e0d597b
    Peter Papucciu authored and facebook-github-bot committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    d6dd0cc View commit details
    Browse the repository at this point in the history
  2. handle corrupt config

    Differential Revision: D58844542
    
    fbshipit-source-id: 7fe52e3b5c24b0c3cf79f1b8fa70cad1a36144f5
    David Heyer authored and facebook-github-bot committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    0cfd81e View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. Add splay to sysstat collection

    Differential Revision: D59322935
    
    fbshipit-source-id: 47688f9b05c3b5f2afebf51b13eff4396b10e7c2
    Cedric Van Goethem authored and facebook-github-bot committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    e478f19 View commit details
    Browse the repository at this point in the history
  2. Shard out disabling running during firstboot (provisioning)

    Summary:
    - Let's defer setting up systemd timers till after workload.ready on boxes
      - These should not be needed for provisioning a new box ready for workload
    - If there are, we should fix (e.g. explicitly run the timers .service file or command from chef)
      - Use not_if to shard out and eventually gate all of our infra out of first boot setup of systemd timers
      - Good for OSS people to do too ...
    
    Differential Revision: D59290162
    
    fbshipit-source-id: 52168797949fb4fae5330d301c1b9deb5a0116b4
    cooperlees authored and facebook-github-bot committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    66c88ad View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. Shard out disabling running during firstboot (provisioning) 1% -> 2%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D59290161
    
    fbshipit-source-id: 2c205a1af8baf40085aa20d79b482efeb98b1d04
    cooperlees authored and facebook-github-bot committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    3a8fceb View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. Shard out disabling running during firstboot (provisioning) 2% -> 5%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D59290158
    
    fbshipit-source-id: cd718ff4bd76fca1de79cf072477cce66df7237a
    cooperlees authored and facebook-github-bot committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    5ed0e3f View commit details
    Browse the repository at this point in the history
  2. Shard out disabling running during firstboot (provisioning) 5% -> 15%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D59290159
    
    fbshipit-source-id: 7ff92a8ee50230f6f8df22b102a93e96d11685ee
    cooperlees authored and facebook-github-bot committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    f26148a View commit details
    Browse the repository at this point in the history
  3. Shard out disabling running during firstboot (provisioning) 15% -> 25%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D59290160
    
    fbshipit-source-id: 6634fc2395553e8862b708ca57477a54514037cd
    cooperlees authored and facebook-github-bot committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    3e68ebb View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Shard out disabling running during firstboot (provisioning) 25% -> 40%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D59290163
    
    fbshipit-source-id: 14c1aa66d18d99f27a1815732f2f6f8f380ac662
    cooperlees authored and facebook-github-bot committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    24d06ef View commit details
    Browse the repository at this point in the history
  2. Shard out disabling running during firstboot (provisioning) 40% -> 60%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D59290157
    
    fbshipit-source-id: 718d22bbaef2d5aa772f06ba8531c22a78090122
    cooperlees authored and facebook-github-bot committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    6807993 View commit details
    Browse the repository at this point in the history
  3. Shard out disabling running during firstboot (provisioning) 60% -> 80%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D59290156
    
    fbshipit-source-id: e00739ab6754daaa0c45cd3a41142935831da447
    cooperlees authored and facebook-github-bot committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    16e1e79 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. Shard out disabling running during firstboot (provisioning) 80% -> 100%

    Summary:
    bumpsign
    
    This diff was created using http://fburl.com/chefshardbump
    
    Differential Revision: D59290155
    
    fbshipit-source-id: fbd2e93fae947c7f4999d527c12642251ac3b5f3
    cooperlees authored and facebook-github-bot committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    93b0328 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. Configuration menu
    Copy the full SHA
    452a5bc View commit details
    Browse the repository at this point in the history