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

ENH: more steps, full remote setup from factory #13

Merged
merged 9 commits into from
Feb 14, 2024

Conversation

ZLLentz
Copy link
Member

@ZLLentz ZLLentz commented Feb 13, 2024

I think this is everything we need for people to be able to run the script reliably once and get all the settings for a PLC program + IOC to be able to work.
It's possible that we'll also need a plc restart step, I'll add one after the next "from factory" go if needed.

Main additions:

  • configure psproxy, so plcs on the network can install from the bsd repositories. It's likely that one day we'll switch this out for local installs over the cds network but for now this makes everything work
  • configure ntp, so the time/date is correct and the bsd servers don't reject us
  • restart the ntp process and force a time/date sync
  • set the timezone appropriately instead of staying on UTC
  • optionally/configurable static ip on the second interface

Misc:

  • Fix the order in the readme
  • Re-establish the ansible config edit that makes the ssh not use the muxer (less efficient but at least it works at all...). I don't know why I needed this originally, didn't need it for a few days, and now need it again. For background, this simply blanks out the ansible default arguments that contain the control master stuff
  • Various small wording tweaks

tangkong
tangkong previously approved these changes Feb 13, 2024
Copy link

@tangkong tangkong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find it difficult to provide much useful feedback here, not knowing what it takes to set up one of these PLCs. What's here looks good to me.

use_psntp: false

# set static IP on x000 (mac id 2)
x000_static:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this would need to be filled, but it doesn't break anything now because we don't use the VMs?

Copy link
Member Author

@ZLLentz ZLLentz Feb 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intent here is that it is set to empty string, but maybe this is fundamentally unclear and I should add boolean switches for using the setting

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do this clarity change and then I think this PR is done after that

@@ -44,8 +106,8 @@
ansible.builtin.pip:
name: "{{ tc_install_pip_packages }}"

- name: Install pip
# Packages only available via pip will be installed after this
- name: Unstall pip

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I swear I read the previous PR 😓

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty upset at myself for unstall vs uninstall lol

@ZLLentz ZLLentz merged commit a91cebe into pcdshub:master Feb 14, 2024
1 check passed
@ZLLentz ZLLentz deleted the enh_more_steps branch February 14, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants