Skip to content

Conversation

cosmosified
Copy link

@cosmosified cosmosified commented Jan 16, 2024

haproxy frontend changes.
may need updating if any of the base haproxy pfsense plugin has added new fields/etc.

looks like some of the comments/ still have references to the backend.
Will clean up.

@cosmosified
Copy link
Author

@opoplawski are you on discord/slack/something?
i'll fix the pylint errors tomorrow!! THanks!

@opoplawski
Copy link
Contributor

othehunter on discord.

@@ -0,0 +1,163 @@
# -*- coding: utf-8 -*-

# Copyright: (c) 2021, Chris Morton, [email protected]
Copy link
Contributor

Choose a reason for hiding this comment

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

You may want to update the year range here.

@@ -0,0 +1,139 @@
# -*- coding: utf-8 -*-

# Copyright: (c) 2021, Chris Morton, [email protected]
Copy link
Contributor

Choose a reason for hiding this comment

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

And here.

#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2019, Frederic Bor <[email protected]>
Copy link
Contributor

Choose a reason for hiding this comment

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

You probably want to add yourself here.

DOCUMENTATION = """
---
module: pfsense_haproxy_frontend
version_added: "0.6.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Change to 0.2.0 now.

DOCUMENTATION = """
---
module: pfsense_haproxy_frontend_server
version_added: "0.6.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

0.2.0

Comment on lines +14 to +16
extaddr=dict(required=True, type='str'),
extaddr_port=dict(required=True, type='int'),
extaddr_ssl=dict(required=True, type='str'),
Copy link
Contributor

Choose a reason for hiding this comment

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

You really don't want anything other name the id field to be required, otherwise you break removal with just the id. Use required_if with state present.

Comment on lines +14 to +15
status=dict(required=True, type='str'),
desc=dict(required=True, type='str'),
Copy link
Contributor

Choose a reason for hiding this comment

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

You really don't want anything other name the id field to be required, otherwise you break removal with just the id. Use required_if with state present.

@opoplawski
Copy link
Contributor

As an FYI - I'm doing a lot of work here: https://github.com/opoplawski/pfsensible-core/tree/module_base_extended to extend PFSenseModuleBase and write misc/generate_module to help with writing modules. It's still pretty green and changing rapidly, but I hope to have some documentation for it by the end of the week.

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