[BangPypers] Python/Devops Engineers needed.

2015-10-12 Thread Atul Tyagi
Hello All,

We are looking for some dynamic devops engineers with strong hold on
python. If you are looking for a change, please do drop me an email.


*Here's what we are looking for in candidates for this job:*

A strong understanding of code and scripting (Python, Bash) *(Must
have)*
Experience with configuration management tools (Puppet, Chef,
SaltStack) *(Good to have)*
Strong understanding of both Linux or Windows operating systems *(Must
have)*
Experience in virtualization platforms and underlying storage systems.
Experience with version control tools (Git, SVN, etc.) preferred

*Non-negotiable for us:*

Minimum of 3 to 5 years in system engineering experience in production
Internet environments
3-5 years of experience administering Linux systems (preferably
RedHat-based) and Windows
2-3 years of scripting experience (Python or Perl )
2-3 years of experience with cloud based technologies
BS/BA degree or equivalent technical degree
2-3 years experience and familiarity of cloud products and line of
business required

Thanks,
Atul
*(tyagi.a...@gmail.com )*

*PS: I am not a recruiter. I work as another devops engineer and this
position is for the same team I work for.*
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] generating cisco config using templates?

2015-10-05 Thread Atul Tyagi
Thanks for the example Nitin. This would work if yaml config file is a
simple dictionary. In my case it is a bit complicated with dictionary and
dictionary of list.

What I have ended up doing is convert the create an object of the yaml data
and pass on individual dictionaries and lists to template.rendrer. Works
for me as I can now access individual dictionaries using the object in a
pythonic way.

I'll post the example on github once I am done with the code. (There are
still a couple of challenges related to snmp user configuration of cisco
devices.

Cheers,
Atul

On Wed, Sep 30, 2015 at 10:07 PM, Nitin Kumar  wrote:

> Hi Atul,
>
> You can refer below link. This is an example which is used to configure
> Juniper devices.
> the code is using YAML and Jinja2 as you are looking for.
>
> https://github.com/vnitinv/pyez-examples/blob/master/6_load_temp_conf.py
>
> corresponding yaml and jinja2 template can be found at
> https://github.com/vnitinv/pyez-examples
>
>
> Nitin Kr
>
> On Wed, Sep 30, 2015 at 9:35 PM, Atul Tyagi  wrote:
>
> > As I said I have not explored salt for network devices yet. It's more for
> > system build automation. For this network device requirement I ended up
> > writing my own python script to push the config to device. We can
> probably
> > use salt-ssh to integrate that into salt but I haven't explored it yet.
> >
> > On Wed, Sep 30, 2015 at 9:24 PM, kracekumar ramaraju <
> > kracethekingma...@gmail.com> wrote:
> >
> > > On Wed, Sep 30, 2015 at 8:26 PM, Atul Tyagi 
> > wrote:
> > >
> > > > By the way I use salt here but it does not have a out of the box way
> to
> > > > manage network devices. Proxy stuff seemed too complicated to me so
> > > haven't
> > > > even given it a shot.
> > > >
> > > >
> > > I am using Salt, if you can share some sample code, we can help.
> > > ___
> > > BangPypers mailing list
> > > BangPypers@python.org
> > > https://mail.python.org/mailman/listinfo/bangpypers
> > >
> > ___
> > BangPypers mailing list
> > BangPypers@python.org
> > https://mail.python.org/mailman/listinfo/bangpypers
> >
> ___
> BangPypers mailing list
> BangPypers@python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] generating cisco config using templates?

2015-09-30 Thread Atul Tyagi
As I said I have not explored salt for network devices yet. It's more for
system build automation. For this network device requirement I ended up
writing my own python script to push the config to device. We can probably
use salt-ssh to integrate that into salt but I haven't explored it yet.

On Wed, Sep 30, 2015 at 9:24 PM, kracekumar ramaraju <
kracethekingma...@gmail.com> wrote:

> On Wed, Sep 30, 2015 at 8:26 PM, Atul Tyagi  wrote:
>
> > By the way I use salt here but it does not have a out of the box way to
> > manage network devices. Proxy stuff seemed too complicated to me so
> haven't
> > even given it a shot.
> >
> >
> I am using Salt, if you can share some sample code, we can help.
> ___
> BangPypers mailing list
> BangPypers@python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] generating cisco config using templates?

2015-09-30 Thread Atul Tyagi
By the way I use salt here but it does not have a out of the box way to
manage network devices. Proxy stuff seemed too complicated to me so haven't
even given it a shot.
On 30 Sep 2015 20:23, "Atul Tyagi"  wrote:

> Idea is to provision mds switches based on datacenter specifications.
> Since the template would be consistent I can generate multiple configs
> depending on what dc yaml is passed.
>
> We dont use ansible here so I have already written a python script usin
> netmiko to connect, scp the config to startup-config and the  reload the
> device.
>
> Only missing peice right now is generating thw config.
> On 30 Sep 2015 19:58, "sayantan bhattacharya"  wrote:
>
>> Can you please specify what configuration you are trying to generate? Are
>> you trying to configure multiple devices?
>>
>> If yes, you can try using the Ansible module, provided you aim for
>> configuring devices issuing the master slave model.
>> On Sep 30, 2015 19:11, "Atul Tyagi"  wrote:
>>
>> > Hi All,
>> >
>> > Has anyone tried to generate the cisco switch config using yaml + jinja.
>> > Any experience, best practices or ideas that you might want to share?
>> >
>> > I am trying to do this. It seems simple with a very basic yaml but it's
>> > getting extremely confusing as I expand by yaml and make it more
>> readable
>> > (other than just key/value pairs
>> >
>> > Any suggestions please?
>> >
>> > Thanks,
>> > Atul
>> > ___
>> > BangPypers mailing list
>> > BangPypers@python.org
>> > https://mail.python.org/mailman/listinfo/bangpypers
>> >
>> ___
>> BangPypers mailing list
>> BangPypers@python.org
>> https://mail.python.org/mailman/listinfo/bangpypers
>>
>
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] generating cisco config using templates?

2015-09-30 Thread Atul Tyagi
Idea is to provision mds switches based on datacenter specifications. Since
the template would be consistent I can generate multiple configs depending
on what dc yaml is passed.

We dont use ansible here so I have already written a python script usin
netmiko to connect, scp the config to startup-config and the  reload the
device.

Only missing peice right now is generating thw config.
On 30 Sep 2015 19:58, "sayantan bhattacharya"  wrote:

> Can you please specify what configuration you are trying to generate? Are
> you trying to configure multiple devices?
>
> If yes, you can try using the Ansible module, provided you aim for
> configuring devices issuing the master slave model.
> On Sep 30, 2015 19:11, "Atul Tyagi"  wrote:
>
> > Hi All,
> >
> > Has anyone tried to generate the cisco switch config using yaml + jinja.
> > Any experience, best practices or ideas that you might want to share?
> >
> > I am trying to do this. It seems simple with a very basic yaml but it's
> > getting extremely confusing as I expand by yaml and make it more readable
> > (other than just key/value pairs
> >
> > Any suggestions please?
> >
> > Thanks,
> > Atul
> > ___
> > BangPypers mailing list
> > BangPypers@python.org
> > https://mail.python.org/mailman/listinfo/bangpypers
> >
> ___
> BangPypers mailing list
> BangPypers@python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


[BangPypers] generating cisco config using templates?

2015-09-30 Thread Atul Tyagi
Hi All,

Has anyone tried to generate the cisco switch config using yaml + jinja.
Any experience, best practices or ideas that you might want to share?

I am trying to do this. It seems simple with a very basic yaml but it's
getting extremely confusing as I expand by yaml and make it more readable
(other than just key/value pairs

Any suggestions please?

Thanks,
Atul
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


[BangPypers] Thinking oops

2015-09-24 Thread Atul Tyagi
Hello bangpypers,

I am fairly new to python. About a year old. I got the hand of the lang and
have written some useful scripts for my operations team. Even though I
would want to use oop concepts, I have not able to think in terms of
oriented. I usually end up using functions.

Would appreciate any pointers to overcome this weakness?

Thank you.
Atul
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers