Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Pfsense Installation using Ansible??

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    10 Posts 6 Posters 3.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      deegupt4
      last edited by

      Does anyone has installed pfsense using Ansible?
      I am facing challenge while giving public ip via ansible?

      1 Reply Last reply Reply Quote 0
      • U
        uspsrackingbynumbers
        last edited by

        I faced same issue how can i solve it

        D 1 Reply Last reply Reply Quote 0
        • D
          deegupt4 @uspsrackingbynumbers
          last edited by

          @uspsrackingbynumbers no i couldn't find it, did you get something?

          1 Reply Last reply Reply Quote 0
          • H
            heavymeza
            last edited by

            Any update, guys?

            1 Reply Last reply Reply Quote 0
            • O
              opoplawski
              last edited by

              I'm not really sure I understand the question/issue. Can you explain in more detail what you are trying to do and what isn't working/

              1 Reply Last reply Reply Quote 0
              • JeGrJ
                JeGr LAYER 8 Moderator
                last edited by

                As ansible requires SSH to work at all, how do you want to "install" pfSense via ansible in the first place?

                Perhaps being a bit more specific what exactly you want to do with ansible would get you more responses :)

                Greets

                Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                1 Reply Last reply Reply Quote 0
                • K
                  kraduk
                  last edited by

                  I do a lot of ansible, and its not intended for os installation, its for configuration. Sure it doesnt need much to get going. Just a transport like ssh, or jexec, but it needs a functioning os. You can then bootstrap stuff like python-simplejson using the script module, and then use the more advanced modules. Non of this would really apply to pfsense though. I also havent seen any modules for pfsense, although you could probably use the uri module to push a config to pfsense.

                  JeGrJ 1 Reply Last reply Reply Quote 0
                  • JeGrJ
                    JeGr LAYER 8 Moderator @kraduk
                    last edited by

                    @kraduk said in Pfsense Installation using Ansible??:

                    I also havent seen any modules for pfsense, although you could probably use the uri module to push a config to pfsense.

                    Nor that I would think I'd see any module as long as there is no official API for pfSense yet.
                    But what you actually CAN do is take a look at the pfSense developer shell (pfSsh.php) and the possibility to script/code the things directly in the $config XML structure of pfSense. We have a lot of VLANs for virtual project networks of different customers and are ATM testing that way to create all necessary Host/Network Aliases as well as a generic ruleset for all VLANs when newly created so Jenkins can trigger a simple ansible job via SSH and run the lines against pfSsh.php to create aliases, NAT configs and firewall rules on the corresponding VLAN. It's not as rock-solid stable as a real API but it can be used to try to automate a few jobs via command line.

                    Cheers
                    Jens

                    Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                    If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                    1 Reply Last reply Reply Quote 0
                    • O
                      opoplawski
                      last edited by

                      Yeah, lack of an API does make it difficult. I've started what I can for an ansible module for pfsense here: https://github.com/opoplawski/ansible-pfsense

                      1 Reply Last reply Reply Quote 0
                      • K
                        kraduk
                        last edited by

                        Sorry to be blunt but I'm at the Xmas do. What you are asking it how to birth before the act ...

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.